Jeremy Soller
9c16ca004a
Fix doc comment on DISABLE_HINTING
2025-07-02 10:59:24 -06:00
Jeremy Soller
4de1b13494
Add DISABLE_HINTING cache flag
2025-07-02 10:58:08 -06:00
Jeremy Soller
b7eb658166
Transform outline if fake italic provided
2025-07-02 10:57:33 -06:00
Joshix-1
6b3f6cb95e
Fix #386 do not ignore font family ( #399 )
...
Font family know gets used when querying the font.
Not sure if this solution is good, if the old code is even needed.
This works for me, which makes it good enough for me.
2025-07-02 10:32:01 -06:00
Erik McClure
f9e43cf355
Fix scroll when vertical offset is exactly layout_height ( #401 )
2025-07-02 10:29:54 -06:00
Erik McClure
3b1aa511d1
Clip based on ascent and descent, not baseline ( #396 )
...
Due to https://github.com/pop-os/cosmic-text/pull/141 the LayoutRunIter incorrect checks to see if the baseline is past the visible bounds of the buffer, instead of using the maximum ascent and maximum descent from the baseline.
2025-06-28 13:03:47 -06:00
Jeremy Soller
bcfb05a390
Revert "Round glyph advance to integer sizes ( #384 )"
...
This reverts commit 987ff45ff2 .
2025-06-22 13:05:00 -06:00
Taj Pereira
c597f3755b
Update peniko version to 0.4.0 ( #387 )
...
* Update peniko version
* Fix no_std build
2025-05-30 04:50:41 +08:00
mahkoh
987ff45ff2
Round glyph advance to integer sizes ( #384 )
...
This is in line with [1].
[1]: https://skia.googlesource.com/skia/+/refs/heads/chrome/m136/src/ports/SkTypeface_fontations.cpp#539
2025-05-14 15:00:30 -06:00
tigregalis
b017d7c856
fontdb 0.23 ( #383 )
...
* fix bench
* update Cargo.toml fontdb 0.23
2025-04-21 09:58:26 -06:00
Jeremy Soller
9e7a56f083
0.14.2
2025-04-14 08:57:14 -06:00
tigregalis
b347487712
use BuildHasher::default() not BuildHasher::new() ( #381 )
2025-04-14 08:55:16 -06:00
Jeremy Soller
87a937056d
0.14.1
2025-04-04 11:53:46 -06:00
Taj Pereira
695745ac4f
Store font as peniko::Font behind feature flag ( #375 )
...
* Allow exposing Peniko font from cosmic text
* .
* .
* .
* .
2025-04-04 11:19:45 -06:00
Jeremy Soller
6598c7cae8
0.14.0
2025-03-31 12:59:58 -06:00
Jeremy Soller
7b79d720cf
Merge pull request #371 from StewartCanva/stewart-add-kerning-ligatures
...
Add support for kerning and ligature font features
2025-03-31 08:41:10 -06:00
Stewart Connor
e828131c92
fix for test.sh
2025-03-31 17:03:51 +11:00
Stewart Connor
53763c157b
Merge branch 'refs/heads/main' into stewart-add-kerning-ligatures
...
# Conflicts:
# src/attrs.rs
2025-03-31 13:42:12 +11:00
Jeremy Soller
64fd3481f1
Require Fallback implementations to be Send + Sync
2025-03-28 10:33:40 -06:00
tigregalis
b027bab538
use alloc ToOwned and String
2025-03-28 15:57:33 +00:00
tigregalis
35eda69cb1
formatting
2025-03-28 15:57:33 +00:00
tigregalis
16015d7ea6
Document Fallback trait
2025-03-28 15:57:33 +00:00
tigregalis
bdd7882a94
set visibility of Fallbacks to pub(crate)
2025-03-28 15:57:33 +00:00
tigregalis
fb3a7c1a1c
Reuse fallbacks
2025-03-28 15:57:33 +00:00
tigregalis
7fb685fa13
Pre-compute the fallbacks on FontFallbackIter::new
2025-03-28 15:57:33 +00:00
tigregalis
ae0fb9b561
Support non-static list of fallbacks
2025-03-28 15:57:33 +00:00
tigregalis
9a4d80d116
derive Debug on PlatformFallback
2025-03-28 15:57:33 +00:00
tigregalis
b32c831f1b
export Fallback, PlatformFallback
2025-03-28 15:57:33 +00:00
tigregalis
a67dded054
Use fallback list via dyn trait in FontSystem
2025-03-28 15:57:33 +00:00
Stewart Connor
4e6d5d731b
rm std
2025-03-28 15:55:47 +00:00
Stewart Connor
08822cac2e
add letter spacing
2025-03-28 15:55:47 +00:00
Stewart Connor
03180dd9ee
nits
2025-03-26 17:45:21 +11:00
Stewart Connor
dc03df8986
Add comments
2025-03-26 17:43:13 +11:00
Stewart Connor
71b0680e6f
revert the references
2025-03-26 17:06:24 +11:00
Stewart Connor
fb852d3ab5
changes before ref
2025-03-26 14:48:54 +11:00
Stewart Connor
1d7850099f
pre-removing copy
2025-03-26 14:31:37 +11:00
Stewart Connor
f5879b3425
add contextual alternatives
2025-03-21 18:24:32 +11:00
Stewart Connor
50373cd6d7
formatting
2025-03-21 18:03:15 +11:00
Stewart Connor
2d67e31bf1
format
2025-03-21 17:56:14 +11:00
Stewart Connor
4b3a6e84ac
better defaults
2025-03-21 17:13:24 +11:00
Stewart Connor
81ca98d5db
more explicit about setting features
2025-03-21 17:12:38 +11:00
Stewart Connor
d071d1a1c3
add kerning ligatures
2025-03-19 17:45:30 +11:00
Simon Ask Ulsnes
500a8fc6d1
Update test images
2025-03-12 10:54:06 -06:00
Jeremy Soller
0483999799
0.13.2
2025-03-11 09:45:30 -06:00
Rob Parrett
813b350563
Fix android build
2025-03-11 09:44:15 -06:00
Jeremy Soller
60f2c2b0c2
0.13.1
2025-03-10 11:24:51 -06:00
valadaptive
c7a426280b
Use chr_idx for ShapeGlyph range in basic shaping
...
We want byte indices, not code point indices. Fixes a panic when
selecting the mixed-language text at the bottom of the rich-text example
when the shaping mode is set to "Basic".
2025-03-10 11:23:36 -06:00
valadaptive
db9033ba86
Fix glyph start+end indices in "Basic" shaping
...
These indices were previously relative to the start of the *run*, when
they should be relative to the start of the *line*.
2025-03-10 11:23:36 -06:00
Jeremy Soller
f7ad0bfa60
0.13.0
2025-03-10 10:57:35 -06:00
Jeremy Soller
974ddaed96
Update default fonts
2025-02-26 07:57:29 -07:00