Behdad Esfahbod
47231bdc70
[COLR/cairo/ft] Fixups to paint-color-glyph and implement for hb-ft
2 years ago
Behdad Esfahbod
58effbcc4f
.
2 years ago
Behdad Esfahbod
c8f6ae1df7
[subset/hvar/retaingids] Synthesize a DeltaSetIndexMap if needed
...
Before we were emitting the entire VarStore rows if advMap
was Null. Instead, synthesize an advMap.
20% speed up in subset_glyphs/SourceHanSans-VF.otf/retaingids benchmark.
2 years ago
Khaled Hosny
afe0910295
[font] Actually deprecate get_glyph_shape()
...
We previously marked it as deprecated in the documentation but didn’t
actually deprecate it in code. Now the only known users have migrated to
draw_glyph(), lets deprecate o=it for good.
2 years ago
Khaled Hosny
0d354e0442
[layout] Add tests for baseline 2 APIs
2 years ago
Behdad Esfahbod
132391ad62
[layout] Add test for font_extents
2 years ago
Behdad Esfahbod
4a735b30c4
[cff2-subset] Update test
2 years ago
Behdad Esfahbod
474b99d122
[test-paint] Fix build without FreeType
...
Fixes https://github.com/harfbuzz/harfbuzz/issues/4103
2 years ago
Behdad Esfahbod
e377888990
[ft-colr] Conditionalize on (unreleased0 FreeType 2.13.0
...
That's the version that the color API is called stable, and
includes changes that we rely on.
2 years ago
Matthias Clasen
8d80d1dd18
[paint] Update expected test results
...
These tests were affected by recent fixes.
2 years ago
Andres Salomon
c622c6b883
[font] update the license url for TestGVAREight.ttf
...
The url in the exif data incorrectly links to a proprietary license. However,
permission was granted for distribution under Apache-2 as part of another project,
so link to that project's license instead.
fixes #4062
2 years ago
Matthias Clasen
eb0a025e49
Add a test for glyph names
...
This verifies that hb_font_get_glyph_name
returns false for nonexisting glyphs.
2 years ago
Matthias Clasen
dd64266ea4
Add a test for glyph extents
...
This verifies a recent fix for COLRv1 returning
0,0,-1,1 for extents of non-painting glyphs.
2 years ago
Khaled Hosny
c08e5d094a
[hb-draw] Fix MSVC warning
...
warning C4305: 'initializing': truncation from 'double' to 'float'
2 years ago
Khaled Hosny
910adc7e92
[test-paint] Update expectations
2 years ago
Behdad Esfahbod
c86bab3fb4
[test-paint] Use G_GNUC_PRINTF
2 years ago
Behdad Esfahbod
f02c4ebb40
[test-paint] Adjust condition for enabling ft backend
2 years ago
Behdad Esfahbod
60a4f2e6f5
[test-paint] Detect FreeType COLRv1 from struct size
2 years ago
Behdad Esfahbod
b783967242
[test] Minor save glyph_count
2 years ago
Matthias Clasen
cca0ed9bcd
test-paint: Add variable font tests
...
These needs freetype master to work.
2 years ago
Matthias Clasen
1cb5a87feb
test-pain: Print out extend for color lines
...
Update all expected results to include this value.
2 years ago
Matthias Clasen
6648e6e3e5
Add one more paint test
...
Add a test for the clip_box_top_left_glyph,
since we've seen broken rendering with it.
2 years ago
Khaled Hosny
8460909e0c
[build] Fix make dist
2 years ago
Garret Rieger
0f01a83622
[subset] add basic test for CFF2 subsetting.
...
FontTools does not yet support CFF2 subsetting so we can't add a comparison test. Instead add a golden file test.
2 years ago
Matthias Clasen
b20871322f
test-paint: Fix use of g_test_skip
2 years ago
Matthias Clasen
eb0f0279d2
test-paint: Avoid g_test_skip_printf
...
This is relatively recent api we don't need.
2 years ago
Matthias Clasen
e61c2be41c
test-paint: Skip tests if ft COLRv1 is missing
2 years ago
Matthias Clasen
1d662632d9
test-paint: More output for failures
2 years ago
Matthias Clasen
d0108d31a2
Add more paint tests
...
These tests compare the output of the ft and ot
implementations for all the glyphs in the test_glyphs
font.
2 years ago
Matthias Clasen
5f976d86a7
test-paint: Use %.3g for results
...
This produces more readable output.
2 years ago
Matthias Clasen
ec78a486bf
Run paint tests at upem scale
...
This avoids problems with rouding.
2 years ago
Matthias Clasen
a085efa699
test-paint: Fix font setup for ft
...
We must call hb_ft_font_set_funcs after
setting the font scale.
2 years ago
Matthias Clasen
26f713a7f5
paint-test: Use larger scales
...
A scale of 20 is noise, so use 1000.
2 years ago
Behdad Esfahbod
e886b6b8a6
[test-draw] Use a larger scale
...
A scale of 20 is in the noise category for us. Using a larger
scale makes the test pass.
2 years ago
Matthias Clasen
347910fd4c
Add a draw test
...
This test compares output between ft and ot
font funcs.
2 years ago
Matthias Clasen
42047070dd
test-paint: More helpful output
...
No need to print ASCII chars as hex.
2 years ago
Behdad Esfahbod
3fd6c0d97a
[test-paint] Remove unused FT_Library
2 years ago
Behdad Esfahbod
28be4f8805
[test-paint] Actually run against hb-ft
2 years ago
Matthias Clasen
ed7d0234e1
test-paint: Limit the precision of clip boxes
...
Update expected test results.
2 years ago
Matthias Clasen
10390ec5c6
Update expected test results
2 years ago
Matthias Clasen
f3ce137420
test-paint: Be more flexible for expected results
...
When generating the expected output with GENERATE_DATA=1,
Glib's test framework puts out some comments at the top
of the file. Ignore them when comparing the expected
output. This makes it possible to directly use the output
of
GENERATE_DATA=1 ./test-paint -p TESTCASE
as expected result for TESTCASE.
2 years ago
Matthias Clasen
d0aaea2319
Update test results for paint-test
...
These were affected by the PaintComposite optimization.
2 years ago
Qunxin Liu
1eb5445e75
[subset] Fix issue in hb_subset_input_override_name_table()
...
If a nameRecord with provided name_id/platform_id/encoding_id/lang_id
is not retained after subsetting, create it and insert it to
the name table. So we need to check against retained name_records
rather than name_record in the original name table.
2 years ago
Behdad Esfahbod
c54debc76d
[face] Add hb_face_collect_nominal_glyph_mapping
...
Fixes https://github.com/harfbuzz/harfbuzz/issues/3973
2 years ago
Matthias Clasen
9f3b59fe6b
Update expected test results
...
These need updates, because they record
every callback, and we've changed what
callbacks are happening.
2 years ago
Matthias Clasen
313f74a693
Add a basic test for hb-coretext api
...
This tests what would be my minimum assumption
about this api. It was written blindly.
2 years ago
Matthias Clasen
661baf403c
Add a basic test for hb-ft api
...
This tests what would be my minimum assumption
about this api.
2 years ago
Matthias Clasen
2a51567925
[paint] Add a test for recursion
2 years ago
Matthias Clasen
1eb4d002f2
Try to fix the build with msvc
2 years ago
Matthias Clasen
00e93102a6
Add a test for hb_ot_color_glyph_has_paint
2 years ago