Ebrahim Byagowi
6b75a30a73
[draw/test] Swap a freetype test case with a simpler one
...
As CI failure, apparently the my local freetype and CI one have different
result so let's switch the case with a simpler one just to test quadratic command
is emitted correctly.
3 years ago
Behdad Esfahbod
ae223764a3
[test/draw] Typo
3 years ago
Ebrahim Byagowi
0429921c10
[draw/test] Add test for freetype callback
...
Let's have that part of the code also covered.
3 years ago
Ebrahim Byagowi
d4588204e5
[draw/glyf] Emit empty contours
...
This makes it actually match freetype behaviour even though rasterizer
should filter such contours specially for stroking.
See https://github.com/harfbuzz/harfbuzz/pull/3411#discussion_r802283827 for the context.
3 years ago
Khaled Hosny
0e357c504c
[draw] Test scaling subfont differently from parent
3 years ago
Khaled Hosny
aca80a4a40
[draw] Add test for applying synthetic slant
3 years ago
Khaled Hosny
052fd2d8b9
[draw] Add test for hb_draw_move_to() etc
3 years ago
Behdad Esfahbod
f1a9a9ccaf
[draw-state] Pass state down to callbacks
3 years ago
Behdad Esfahbod
9f05362d43
[test-draw] Fix compiler warning
3 years ago
Behdad Esfahbod
1740916ede
[draw] Remove check for no-op
...
This is unnecessary overhead. Up to rasterizers to handle this. Plus,
this throws off point-numbers in uses that rely on it.
Disabled one test that broke with this.
3 years ago
Behdad Esfahbod
5610fa1da0
[test-draw] Re-enable two disabled tests
3 years ago
Behdad Esfahbod
8b4f429000
[draw] Virtualize hb_font_draw_glyph() into hb_font_get_glyph_shape()
...
To be implemented in hb-ft.
3 years ago
Behdad Esfahbod
2bed4f46fb
[draw] Fix draw signatures
3 years ago
Behdad Esfahbod
e0ac6c587b
Remove remaining traces of HB_EXPERIMENTAL_API
3 years ago
Behdad Esfahbod
5207ce828a
[draw] Enable draw tests
...
Disable two failing ones.
3 years ago
Behdad Esfahbod
157caf254e
[test-draw] Fix compiler warning
3 years ago
Garret Rieger
670ef070bd
[subset] Change subset plan create to be or_fail.
3 years ago
Garret Rieger
ae8d373bcf
[subset] add subset plan reference, set/get user data functions.
3 years ago
Garret Rieger
b65e48a786
[subset] Add subset plan to public API.
...
Add the ability to create a subset plan which an be used to gather info on things like glyph mappings in the final subset. The plan can then be passed on to perform the subsetting operation.
3 years ago
Alexis King
81754a5a96
[ot-math] Add hb_ot_math_get_glyph_kernings
...
closes #3396
3 years ago
Alexis King
1bc4bad7a5
[ot-tag] Add HB_SCRIPT_MATH (Zmth) and map it to OT ‘math’ tag
...
The ISO 15924 code for mathematical notation is ‘Zmth’, but the
OpenType script is ‘math’.
3 years ago
luz paz
e2e305066a
Fix various typos
...
Found via `codespell -q 3 -S ./perf/texts -L actualy,ba,beng,fo,gir,inout,nd,ot,pres,ro,te,teh,timne`
3 years ago
Matthias Clasen
8dc86d0703
Add a test font scale rounding behavior
...
This test verifies the fix for
https://github.com/harfbuzz/harfbuzz/issues/3274
3 years ago
Qunxin Liu
8c583db9b5
[subset] COLRv1: update subset() method for new strutc ClipList and VarIdxMap
...
Also fix issues in struct PaintTransform definition
3 years ago
Garret Rieger
d700646c33
[subset] In preperation for 3.0.0 release remove legacy subsetting api methods.
3 years ago
David Corbett
a0101a31b5
[Unicode 14] Add tests
3 years ago
Khaled Hosny
4d9b7de0b6
[style] Prepare for release
3 years ago
Behdad Esfahbod
201cbe3c66
[style] Rename HB_STYLE_TAG_SLANT to HB_STYLE_TAG_SLANT_ANGLE
3 years ago
Garret Rieger
102666dab7
[subset] add test for hb_subset_input_set (...).
4 years ago
Behdad Esfahbod
955f86a034
[test-set] Fix compiler warnings
4 years ago
Garret Rieger
f2441a4b65
[subset] Remove retain all layout features flag.
...
Instead use inverted sets to handle requesting all features. Modifies feature collection in subset plan to intersect the set of requested features against the features in the font. This prevents iterating a fully filled feature tag set.
4 years ago
Garret Rieger
f84daccb4f
[set] include null pool sets in the permutations tested by inverted_operations.
4 years ago
Garret Rieger
915550ab19
[set] remove inverted test TODO.
4 years ago
Garret Rieger
c4ed582997
[set] add test for inverted set operations.
...
This test checks all possible set configurations against each operation type.
4 years ago
Garret Rieger
325fd6ddb8
[set] add tests for inverted set equality.
4 years ago
Garret Rieger
287032af6c
[set] update set test TODO list.
4 years ago
Garret Rieger
5c003d80a6
[set] add tests for inverted previous iteration.
4 years ago
Garret Rieger
3f2cc582f2
[set] add basic and iteration set inverion tests.
4 years ago
Garret Rieger
cb05c363d7
[subset] add some basic tests for the legacy subset methods.
4 years ago
Khaled Hosny
6ac6a2b27b
[test] hb_ot_layout_language_get_feature_tags()
4 years ago
Khaled Hosny
e9b743b26d
[test] hb_ot_layout_script_get_language_tags()
4 years ago
Khaled Hosny
bf438b815f
[test] hb_ot_layout_table_get_feature_tags()
4 years ago
Khaled Hosny
2f88ea5a20
[test] hb_ot_layout_table_find_script()
4 years ago
Khaled Hosny
f60caad7ff
[test] hb_ot_layout_table_get_script_tags()
4 years ago
Garret Rieger
c08f1b8903
[map] fix incorrect population count in hash map.
...
If the same key was set twice the population was being incorrectly incremented.
4 years ago
Garret Rieger
2c024dc3cb
[subset] prune redundant cmap12 subtables.
...
If the post subset cmap12 table is equivalent to another cmap subtable don't include the 12 table in the final subset. Matches change https://github.com/fonttools/fonttools/pull/2146 from fontTools.
4 years ago
Khaled Hosny
2cc9ed2b9e
[test] More lookup_collect_glyphs() tests
4 years ago
Khaled Hosny
0664037401
[test] More lookup_collect_glyphs() tests
4 years ago
Khaled Hosny
ecdd8e3f18
[test] More lookup_collect_glyphs() tests
4 years ago
Khaled Hosny
f998d7e1ce
[test] Add API test for lookup_collect_glyphs()
...
We don’t seem to have any tests exercising this API at all, and it is a
good check of GSUB/GPOS code.
4 years ago