Hajime Hoshi
88a2c14a8e
text/v2: add a test to parse a collection file
...
This test failed at c985e9bdc6
, but
fixed at 999c64cb78
accidentally.
This issue was introduced in 2.9 (maybe d19a774316
),
so this doesn't have to be cherry-picked.
2024-12-25 23:24:40 +09:00
Hajime Hoshi
813e3b28af
text/v2: add Metrics.XHeight and Metrics.CapHeight
...
Closes #3082
2024-09-11 00:15:57 +09:00
Hajime Hoshi
2b9e307ec2
text/v2: bug fix: given options were unexpectedly modified
...
Closes #2954
2024-04-07 22:16:17 +09:00
Hajime Hoshi
cd90f083bc
text/v2: rename StdFace to GoXFace
...
Closes #2925
2024-03-20 02:42:31 +09:00
Hajime Hoshi
e0741dcd94
text/v2: refactoring
2023-12-09 22:07:17 +09:00
Hajime Hoshi
6a8f37453e
text/v2: bug fix: MultiFace should use the last face as the final resort
2023-12-05 21:40:53 +09:00
Hajime Hoshi
800835d081
Revert "text/v2: rename Glyph -> Cluster"
...
This reverts commit f0d23de3d3
.
Reason: Cluster doesn't represent a cluster but a part of a cluster.
2023-12-05 19:44:32 +09:00
Hajime Hoshi
f0d23de3d3
text/v2: rename Glyph -> Cluster
...
This also changes AppendClusters to return cluster info even if a
cluster doesn't have a glyph.
2023-12-05 18:00:30 +09:00
Hajime Hoshi
81e0e61a43
text/v2: let NewMultiFace return an error
...
Updates #2845
2023-12-04 01:16:47 +09:00
Hajime Hoshi
fa3ec12731
text/v2: bug fix: the given slice to MultiFace should be copied
...
Updates #2845
2023-12-02 22:59:14 +09:00
Hajime Hoshi
2432888b9f
text/v2: fix test
2023-11-21 14:32:30 +09:00
Hajime Hoshi
36fc5b0266
test/v2: add a test for an unhashable font.Face
...
Updates #2454
Closes #2669
2023-11-20 23:18:59 +09:00
Hajime Hoshi
d2d86fbddd
text/v2: add tests
...
Updates #2454
2023-11-19 17:43:44 +09:00
Hajime Hoshi
2b46a77e39
text/v2: replace Rune and IndexInBytes with Start/EndIndexInBytes in Glyph
...
The relationships between runes and glyphs are n:m in general,
then Rune is not enough. Let Glyph have a range of a string.
Updates #2454
2023-11-14 01:38:45 +09:00