Behdad Esfahbod
469502c99b
[test-paint] Test fontations too
...
Luckily it passes!
2025-03-12 11:02:43 -06:00
Behdad Esfahbod
d014efd03d
Merge pull request #5131 from harfbuzz/using2
...
Add hb_ft_face_create_from_blob_or_fail() et al
2025-03-11 13:37:48 -06:00
Behdad Esfahbod
759e1881e8
[coretext] Fix loading TTC files
2025-03-11 12:46:27 -06:00
Behdad Esfahbod
15fcfcb606
Merge pull request #5129 from harfbuzz/buffer-deserialize
...
Fix buffer deserialize
2025-03-11 12:01:20 -06:00
Behdad Esfahbod
5e6da54166
[test] Minor, accept absolute font paths
2025-03-11 12:00:18 -06:00
Behdad Esfahbod
8687f5c38e
[face] Add tests for new constructors
2025-03-11 11:56:00 -06:00
Behdad Esfahbod
756668d35c
[directwrite] Drop dependency again as per review
...
https://github.com/harfbuzz/harfbuzz/pull/5132#issuecomment-2714186460
2025-03-11 11:27:02 -06:00
Behdad Esfahbod
6b2f859232
[test-c] Disable gobject include
...
It can't find its dependent headers since not installed.
2025-03-11 00:37:11 -06:00
Behdad Esfahbod
8ca892b0e2
[directwrite] Simplify headers
2025-03-11 00:24:11 -06:00
Behdad Esfahbod
d247c116fb
[test-draw] Test all font funcs
2025-03-11 00:15:40 -06:00
Behdad Esfahbod
d2ccf595bd
Directwrite is a C++ header?
2025-03-11 00:15:19 -06:00
Behdad Esfahbod
41dcc493e5
[test-cplusplus] Simplify
2025-03-10 23:49:05 -06:00
Behdad Esfahbod
dbad6cdfec
[test-c(plusplus)] Add more headers
2025-03-10 23:23:16 -06:00
Behdad Esfahbod
3c02fcd0e8
[test-multithread] Simplify
2025-03-10 23:16:30 -06:00
Behdad Esfahbod
7a912c4746
[buffer-deserialize] Fix return value and parsing
...
I think I got it right.
Alternative to https://github.com/harfbuzz/harfbuzz/pull/5028
2025-03-10 16:20:16 -06:00
Behdad Esfahbod
712a403bec
[font-funcs-using] Apply review feedback
2025-03-08 12:23:41 -07:00
Behdad Esfahbod
c3eac5c0f3
[test-threads] Test all font-funcs
...
Fontations & Coretext are new and seems to pass.
2025-03-08 11:57:31 -07:00
Behdad Esfahbod
2a878b1b76
[font-funcs] Add two new API
...
+ hb_font_set_funcs_using()
+ hb_font_list_funcs()
Part of https://github.com/harfbuzz/harfbuzz/issues/5117
2025-03-08 11:50:53 -07:00
Matthias Clasen
41e14f7029
[test-paint] Use latest test fonts
...
Update the color test fonts from https://github.com/googlefonts/color-fonts/
repository and update the test results.
2025-03-07 10:48:46 -07:00
Behdad Esfahbod
6506bd7e82
Merge pull request #4498 from harfbuzz/PaintColrLayers
...
[COLRv1] Optimize PaintColrLayers instead of PaintComposite
2025-03-06 20:00:54 -07:00
Matthias Clasen
9fbc2d23b5
[test-paint] Regenerate the test output
...
This commit updates the expected output of the paint tests
to what the current code produces.
2025-03-06 20:11:23 -05:00
Matthias Clasen
0ce90f60ab
[test-paint] Make it easier to regenerate test output
...
This command will regenerate the expected output for all the
paint tests:
GENERATE_DATA=1 G_TEST_SRCDIR=./test/api ./build/test/api/test-paint
2025-03-06 20:10:13 -05:00
Khaled Hosny
aecc9110a3
[fontations/test] Add to test-draw
2025-03-06 04:23:24 +02: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
Behdad Esfahbod
9d149c5284
[test-paint] Redirect generated output to stderr
2025-02-26 15:07:46 -07:00
Behdad Esfahbod
753093d60e
[test-colrv1] Add test files from https://roettsch.es/var_colrv1.html
...
These are not currently used for any testing. To be used later.
2025-02-26 14:41:04 -07:00
Behdad Esfahbod
6fe1441782
[test-paint] Update comment
2025-02-26 14:40:08 -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
Khaled Hosny
8c561733b6
[test/coretext] Add a test for copying variations
2025-02-12 14:21:09 +02:00
Behdad Esfahbod
c55738fa77
[test] Set MALLOC_CHECK_ to 1 instead of 2; kill G_SLICE=always-malloc
...
MALLOC_CHECK_=2 makes running tests twice slower on macOS. Value 1
is as fast as not checking at all. It's not like this ever caught
a bug for us or anything. We have so many sanitizers and fuzzers
funning on CI, which catch all kinds of memory problems.
G_SLICE is long gone in glib.
The slowest part of running the test suite now is the google-benchmark
tests, that get run by us... I'll see if I can disable. I had reported
it before at https://github.com/harfbuzz/harfbuzz/issues/4153
2025-02-09 08:11:01 +00:00
Behdad Esfahbod
7f5fac7c87
[test-buffer] Fix unintionally merged change
2025-02-04 23:35:34 +00:00
Behdad Esfahbod
f0ead85283
[aat] Implement set filtering for Noncontextual chains as well
2025-02-04 23:30:30 +00:00
Khaled Hosny
4825e5e2b4
[face] Add fallback implementation to hb_face_reference_blob
...
If referencing the face blob is not possible (e.g. not implemented by
the font functions), use face builder to create a blob out of
individual table blobs.
Fixes https://github.com/harfbuzz/harfbuzz/issues/5036
2025-02-04 15:45:22 +02:00
Behdad Esfahbod
b394ab39e9
[test-buffer] Add code for testing end_ptr
2025-02-01 14:26:32 +00:00
Garret Rieger
bdb50f1c6e
[repacker] Also rename api method from hb_subset_repack_or_fail -> hb_subset_serialize_or_fail.
2025-01-07 13:39:51 -07:00
Garret Rieger
056504168c
[repacker] rename hb-subset-repacker -> hb-subset-serialize.
...
Also hb_link_t and hb_object_t to hb_subset_serialize_link_t and hb_subset_serialize_object_t.
2025-01-07 13:39:51 -07:00
Garret Rieger
b0d52abe97
[subset] consider variation selectors subsetting cmap14
...
cmap14 subsetting code was not considering variation selectors in the input unicode set when deciding which variant glyphs to keep. This updates subsetting to only keeps variant glyphs if their variation selector code point is in the input unicodes set.
For https://github.com/harfbuzz/harfbuzz/issues/4911
2024-11-11 13:45:08 -07:00
Behdad Esfahbod
755929c48d
Fix more compiler warnings
...
In case FreeType is not available.
2024-10-12 20:08:32 -06:00
Khaled Hosny
4d1f6e049c
[COLR] Enable COLRv0 support in get_extents()
...
paint_glyph() supports COLRv0 but this code is never reached because of
the early return if version is not 1. This early return seems to be from
before COLRv0 extents were supported.
2024-10-07 13:24:14 -06:00
Julien Nabet
8de0d91166
missing-field-initializers in test/api/test-ot-face.c
...
FAILED: test/fuzzing/hb-shape-fuzzer.p/hb-shape-fuzzer.cc.o clang++ -Itest/fuzzing/hb-shape-fuzzer.p -Itest/fuzzing -I../test/fuzzing -I. -I.. -Isrc -I../src -fdiagnostics-color=always -D_GLIBCXX_ASSERTIONS=1 -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c++11 -fno-exceptions -O3 -fno-exceptions -fno-rtti -fno-threadsafe-statics -fvisibility-inlines-hidden -DHAVE_CONFIG_H -Wall -Wextra -Werror -MD -MQ test/fuzzing/hb-shape-fuzzer.p/hb-shape-fuzzer.cc.o -MF test/fuzzing/hb-shape-fuzzer.p/hb-shape-fuzzer.cc.o.d -o test/fuzzing/hb-shape-fuzzer.p/hb-shape-fuzzer.cc.o -c ../test/fuzzing/hb-shape-fuzzer.cc In file included from ../test/fuzzing/hb-shape-fuzzer.cc:9: ../test/fuzzing/../api/test-ot-face.c:47:34: error: missing field 'y_bearing' initializer [-Werror,-Wmissing-field-initializers]
hb_glyph_extents_t extents = {0};
^
../test/fuzzing/../api/test-ot-face.c:85:55: error: missing field 'enable' initializer [-Werror,-Wmissing-field-initializers]
hb_aat_layout_feature_selector_info_t setting = {0};
^
2 errors generated.
2024-10-06 12:47:27 -06:00
David Corbett
e30dedbb42
[Unicode 16] Add tests
2024-09-14 12:06:08 -04:00
Behdad Esfahbod
59a97ac02e
[test] More get_table_tags test
2024-08-06 14:53:36 -06:00
Behdad Esfahbod
a55b007144
[test] Add get_table_tags test for hb-coretext
2024-08-06 14:42:37 -06:00
Behdad Esfahbod
bd79bfb653
[test] Add get_table_tags test for hb-ft
2024-08-06 13:40:06 -06:00
Behdad Esfahbod
a459753ef9
[test] Test get_table_tags of face_builder
2024-08-06 13:31:24 -06:00