Behdad Esfahbod
4d52539275
[geometry] Add scale_around_center & skew_around_center
2025-03-02 17:03:51 -07:00
Behdad Esfahbod
181b2ed946
[hb-draw-compare] Two small fixes
2025-03-02 17:00:17 -07:00
Behdad Esfahbod
c42e6e741d
[hb-draw-compare] Remove --face-loader=auto as well
...
No need to change all kinds of parameters under the hood.
2025-03-02 17:00:17 -07:00
Behdad Esfahbod
67d005f660
[hb-draw-compare] Default to ot shaper
...
Since there's no 'ft' shaper, hence --font-funcs2=ft was failing.
Still using auto for --face-loader, since we support ot, ft, and coretext
there.
2025-03-02 17:00:17 -07:00
Behdad Esfahbod
d3e7f916e1
[hb-draw-compare] Compare glyphs, not Unicodes
...
Unicodes can still be specified using --unicodes; but default to all glyphs
in the font.
2025-03-02 17:00:17 -07:00
Behdad Esfahbod
68bc56f62c
[hb-draw-compare] Wording
2025-03-02 17:00:17 -07:00
Behdad Esfahbod
72a1c49798
[hb-draw-compare] Add --shaper=auto and --face-loader=auto
2025-03-02 17:00:17 -07:00
Behdad Esfahbod
ddf23adf43
[hb-draw-compare] Wording
2025-03-02 17:00:17 -07:00
Behdad Esfahbod
0ce046953d
[hb-draw-compare] Allow skipping one funcs or other
...
To just generate caches... E.g --font-funcs1 ''
And a couple other fixes.
2025-03-02 17:00:17 -07:00
Behdad Esfahbod
4bfa3a84e7
[hb-draw-compare] Rename a couple of options
2025-03-02 17:00:17 -07:00
Behdad Esfahbod
0383495dbb
[hb-draw-compare] Add --clean1 and --clean2
2025-03-02 17:00:17 -07:00
Behdad Esfahbod
e83ec2800e
[hb-draw-compare] Cache actual instance
2025-03-02 17:00:17 -07:00
Behdad Esfahbod
994c7048a2
[hb-darw-compare] Minor; in anticipation of next change
2025-03-02 17:00:17 -07:00
Behdad Esfahbod
e6e68f4671
[hb-draw-compare] Speed up cached case
2025-03-02 17:00:17 -07:00
Behdad Esfahbod
919ae83b93
[hb-svg-compare] Short-circuit if contents are exactly the same
2025-03-02 17:00:17 -07:00
Behdad Esfahbod
dd69cc5715
[hb-draw-compare] Change tolerance to 0
...
Now we always match CoreText. So, drop tolerance to 0.
2025-03-02 17:00:17 -07:00
Behdad Esfahbod
19b4c6e559
[subset] "Fix" subset tests after recent fvar/avar precision changes
2025-03-02 17:00:17 -07:00
Behdad Esfahbod
d7b15b0e21
[font/fvar/avar] Increase axis coordinate normalization precision
...
Spec requires 16.16; we were doing 2.14. Fix up.
Now we do math in float, but do the 16.16 and final 2.14 rounding
as required by the spec.
2025-03-02 17:00:17 -07:00
Behdad Esfahbod
9ccb714217
[font] Return NAN for design coords, if normalized coords were set
2025-03-02 17:00:17 -07:00
Behdad Esfahbod
3caf3b2f0d
[hb-svg-compare] Report 5 digits of float precision
2025-03-02 17:00:17 -07:00
Behdad Esfahbod
91c0fb3ff7
[hb-draw-compare] Drop down tolerance from .5 to .05
...
With all the avar fixes, we now match CoreText for tested fonts down
to ~.02 font units. The rest is probably just because of the 2.14
quantization of normalized axis values.
2025-03-02 17:00:17 -07:00
Behdad Esfahbod
b2cdebeb64
[hb-draw-compare] Change tolerance from 1 to .5
2025-03-02 16:59:23 -07:00
Behdad Esfahbod
76d4e5e0db
[hb-draw-compare] Always create diff file
2025-03-02 16:59:23 -07:00
Behdad Esfahbod
ee9d7e5392
[hb-draw-compare] Speed up by removing cmp
...
It was gatekeeping only 5 glyphs, but 2x slowing down comparison.
2025-03-02 16:59:23 -07:00
Behdad Esfahbod
dcd73915f9
[draw-compare] Add --face-index
2025-03-02 16:59:23 -07:00
Behdad Esfahbod
65d453a032
[hb-draw-compare] Tweak
2025-03-02 16:59:23 -07:00
Behdad Esfahbod
96c7f6a7a7
[hb-svg-compare] Report exact diff
2025-03-02 16:59:23 -07:00
Behdad Esfahbod
f14eb54a23
[hb-draw-compare] Trying to speed up
2025-03-02 16:59:23 -07:00
Behdad Esfahbod
9625933535
[hb-draw-compare] Remove svgo; add custom SVG comparator
2025-03-02 16:59:23 -07:00
Behdad Esfahbod
a703e34ced
[hb-draw-compare] Change default precision to 1
...
0 was producing faulty optinized shapes. Sigh..
2025-03-02 16:59:23 -07:00
Behdad Esfahbod
00cb38b9e5
[hb-draw-compare] Remove svgo config
...
Was producing faulty results :(.
2025-03-02 16:59:23 -07:00
Behdad Esfahbod
9fc1ac18c0
[hb-draw-compare] Rewrite...
2025-03-02 16:59:23 -07:00
Behdad Esfahbod
4008b79c31
[hb-draw-compare] Reuse existing SVGs
2025-03-02 16:59:23 -07:00
Behdad Esfahbod
37b7ab6a5c
[hb-draw-compare] Use find instead of ls
2025-03-02 16:59:23 -07:00
Behdad Esfahbod
5672191426
[hb-draw-compare] Try making ls work
2025-03-02 16:59:23 -07:00
Behdad Esfahbod
3d68517c38
[hb-draw-compare] Spoonfeed svgo
2025-03-02 16:59:23 -07:00
Behdad Esfahbod
c86e0fcd3b
[hb-draw-compare] "Improve"
2025-03-02 16:59:23 -07:00
Behdad Esfahbod
835d9ce0f8
[hb-draw-compare] Use batching hb-view
2025-03-02 16:59:23 -07:00
Behdad Esfahbod
2c8e862c0e
[hb-draw-compare] Work on Unicodes, not glyphs
2025-03-02 16:59:23 -07:00
Behdad Esfahbod
52534c6f4c
[test] Add hb-draw-compare
2025-03-02 16:59:23 -07:00
Khaled Hosny
69e1c3c352
[ft] Add hb_ft_font_get_ft_face()
...
A new name for hb_ft_font_get_face(), which is now deprecated.
Fixes https://github.com/harfbuzz/harfbuzz/issues/5084
2025-02-28 23:56:03 +02:00
Garret Rieger
ea1434b897
Split iup glyf partial instance tests into a separate set which ignores due to IUP rounding differences fonttools.
2025-02-25 19:02:11 +00:00
Behdad Esfahbod
9a0cf8d641
[test/subset/cff-japanese] Shrink test
...
Was taking too long.
2025-02-25 00:19:25 -07:00
Behdad Esfahbod
084fb3ab4f
[test/subset/cmap] Shrink test
...
Was taking more than the rest of the test suite combined.
2025-02-25 00:16:27 -07:00
Behdad Esfahbod
74bb7c52f3
Fix a compiler warning
2025-02-24 20:21:38 -07:00
Khaled Hosny
03cf1565f5
[directwrite] Rename font_get_font to font_get_dw_font
...
https://github.com/harfbuzz/harfbuzz/pull/5079#pullrequestreview-2627407692
2025-02-20 22:16:22 +02:00
Khaled Hosny
a8fd29718a
[directwrite] Add hb_directwrite_font_create()/font_get_font()
...
Uses hb_directwrite_face_create() under the hood, but copies variations
from directwrite to hb-font.
2025-02-20 21:40:27 +02:00
Khaled Hosny
ff3aaece6d
[test/shape-plan] Add another test and some comments
2025-02-14 21:54:30 +02:00
Khaled Hosny
cf336f17b2
[shape-plan] Rename hb_ot_shape_plan_get_features to get_feature_tags
...
Simplify the API by returning only feature tags. The users of this API
would be interested only in feature enabled by default and whether the
feature is globally or partially enabled wouldn’t be of much interest in
that case. For user features, the user of the API already have full
access to them.
2025-02-14 21:54:30 +02:00
Khaled Hosny
a7d7715f10
[shape-plan] Add hb_ot_shape_plan_get_features
...
This should get the features on a shape plan after executing it.
Initially I wanted to return an array of tags, but then there can be
user features that are not enabled globally, so I thought returning
hb_feature_t with value and range would be better. There is a TODO since
I couldn’t figure out how to get the value and range from the feature
mask. But also it may be overkill and a simple boolean indicating wither
it is a global feature or not would be enough.
I wounder also what should happen to non-user features that are applied
selectively, like init or medi, does ot make sense to indicate whether
they are global or not?
This is inspired by the discussion in:
https://github.com/fontforge/fontforge/pull/5522#pullrequestreview-2574321449 ,
but it might be useful to other HarfBuzz users.
2025-02-14 21:54:30 +02:00