test/api


Log

Author Commit Date CI Message
Behdad Esfahbod 755929c4 2024-10-12T20:08:32 Fix more compiler warnings In case FreeType is not available.
Khaled Hosny 4d1f6e04 2024-10-06T18:25:24 [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.
Julien Nabet 8de0d911 2024-10-06T18:44:21 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.
David Corbett e30dedbb 2024-09-14T12:06:08 [Unicode 16] Add tests
Behdad Esfahbod 59a97ac0 2024-08-06T14:53:36 [test] More get_table_tags test
Behdad Esfahbod a55b0071 2024-08-06T14:39:10 [test] Add get_table_tags test for hb-coretext
Behdad Esfahbod bd79bfb6 2024-08-06T13:40:06 [test] Add get_table_tags test for hb-ft
Behdad Esfahbod a459753e 2024-08-06T13:31:24 [test] Test get_table_tags of face_builder
Behdad Esfahbod 8896b1d5 2024-08-06T12:34:15 [test] Add test for get_table_tags So far just tests the default implementation.
Behdad Esfahbod 84f16564 2024-08-06T12:15:39 [test] Move code around
Behdad Esfahbod 22e1a5a7 2024-08-06T12:20:34 [test-paint] Fix warnings
Behdad Esfahbod 191c6eed 2024-08-06T06:59:32 Fix Linux bot
Behdad Esfahbod e0c3cbf1 2024-08-06T06:46:44 [subset] Fail if source face has no glyphs Also return nullptr if any of the input pointers are nullptr. Before we were returning the empty face. Fixes https://github.com/harfbuzz/harfbuzz/issues/4824
Khaled Hosny cf1fdf16 2024-06-27T06:54:02 Drop autotools build Fixes https://github.com/harfbuzz/harfbuzz/issues/4720
Behdad Esfahbod 49c8493f 2024-06-20T11:16:40 [test] Build with HB_MINI Also add CONFIG.md instructions for building configs with meson. Fixes https://github.com/harfbuzz/harfbuzz/issues/4760
ssmid 106e4068 2024-06-20T09:50:46 HB_SCRIPT_CANADIAN_ABORIGINAL removed, as deprecated
ssmid 8de7e9fd 2024-06-20T08:54:23 deprecation cleanup: HB_BUFFER_FLAGS_DEFAULT removed
Behdad Esfahbod 9456f6bd 2024-06-02T10:32:07 [test] Fix a few compiler warnings
David Corbett c2b5b7b9 2024-06-01T12:48:17 [ot-tags] Update IANA and OT language registries
Khaled Hosny 135d6537 2024-05-31T01:25:05 test-draw-varc.c: Fix “warning: unused function”
Behdad Esfahbod 0037ee28 2024-05-24T08:10:15 Merge pull request #4578 from harfbuzz/varc-table `VARC` table
David Corbett 0db136b1 2024-05-09T11:49:48 [subset-cff] Shorten output of `encode_num_tp`
Behdad Esfahbod 6129c726 2024-04-22T14:52:58 [varc] Use Condition instead of ConditionSet With more Condition formats. https://github.com/harfbuzz/boring-expansion-spec/commit/df7dcc4618b9dc003740d25c53afe30a8fc03fe2 https://github.com/harfbuzz/boring-expansion-spec/issues/147
Behdad Esfahbod d07d70ae 2024-03-22T11:43:37 [varc] Add test
Ozkan Sezer dbecddb4 2024-03-17T11:50:04 tests, hb-test.h: define g_assert_false && g_assert_nonnull for old glib Reference issue: https://github.com/harfbuzz/harfbuzz/issues/4577 Reference issue: https://github.com/harfbuzz/harfbuzz/issues/4624
Lie Yan 2da79f70 2024-03-09T22:45:37 fix(test-ot-math.c): remove redundant lines
Christer Sandberg 1ab8822b 2024-02-09T17:24:49 Fixed some errors in STAT table implementation
Lie Yan c17d6746 2024-01-07T22:10:10 [ot-math] Fix a bug in MathKern::get_value() Fixes https://github.com/harfbuzz/harfbuzz/issues/4542
Garret Rieger 9701b002 2023-11-06T22:14:31 [subset] Always place CFF1/2 char strings at the end of the packed table. Makes the behaviour from HB_SUBSET_FLAGS_IFTB_REQUIREMENTS the default.
Garret Rieger c6884377 2023-11-06T20:21:46 [subset] Add HB_SUBSET_FLAGS_IFTB_REQUIREMENTS flag. When enabled the output subset conforms to the requirements for a base font to be patched by IFTB patches. IFTB is a proposed incremental font transfer patch. This new flag is set as experimental. Currently, setting this flag causes the output subset to also use long offsets for outline data in loca/glyf, gvar, CFF, and CFF2. This change is a version of https://github.com/skef/harfbuzz/commit/3ae2fe2084d96f61d8ad1bbe42a6ef4e62ec830a rebased onto head w/ tests added.
Khaled Hosny 6e06a193 2023-09-30T01:12:16 Add some tests for hb_feature_[from|to]_string()
David Corbett c459b8a5 2023-09-16T10:27:07 [Unicode 15.1] Add tests
Behdad Esfahbod 0c80aec1 2023-08-15T10:30:38 [COLR] Move cycle-detection to the renderer instead of cairo Alternative fix for https://github.com/harfbuzz/harfbuzz/issues/4375
Behdad Esfahbod 7d7541e3 2023-08-14T17:55:09 [test-paint] Print paint-color-glyph
Behdad Esfahbod 47231bdc 2023-08-14T16:52:44 [COLR/cairo/ft] Fixups to paint-color-glyph and implement for hb-ft
Behdad Esfahbod 58effbcc 2023-08-14T16:47:01 .
Behdad Esfahbod c8f6ae1d 2023-07-08T20:21:49 [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.
Khaled Hosny afe09102 2023-07-09T02:45:52 [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.
Khaled Hosny 0d354e04 2023-05-21T19:01:04 [layout] Add tests for baseline 2 APIs
Behdad Esfahbod 132391ad 2023-05-19T15:01:49 [layout] Add test for font_extents
Behdad Esfahbod 4a735b30 2023-02-19T19:51:03 [cff2-subset] Update test
Behdad Esfahbod 474b99d1 2023-02-04T10:16:11 [test-paint] Fix build without FreeType Fixes https://github.com/harfbuzz/harfbuzz/issues/4103
Behdad Esfahbod e3778889 2023-01-26T13:26:47 [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.
Matthias Clasen 8d80d1dd 2023-01-25T19:06:51 [paint] Update expected test results These tests were affected by recent fixes.
Andres Salomon c622c6b8 2023-01-24T23:52:10 [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
Matthias Clasen eb0a025e 2023-01-24T20:40:32 Add a test for glyph names This verifies that hb_font_get_glyph_name returns false for nonexisting glyphs.
Matthias Clasen dd64266e 2023-01-24T19:26:20 Add a test for glyph extents This verifies a recent fix for COLRv1 returning 0,0,-1,1 for extents of non-painting glyphs.
Khaled Hosny c08e5d09 2023-01-21T03:40:09 [hb-draw] Fix MSVC warning warning C4305: 'initializing': truncation from 'double' to 'float'
Khaled Hosny 910adc7e 2023-01-17T14:23:46 [test-paint] Update expectations
Behdad Esfahbod c86bab3f 2023-01-17T06:29:17 [test-paint] Use G_GNUC_PRINTF
Behdad Esfahbod f02c4ebb 2023-01-16T14:17:16 [test-paint] Adjust condition for enabling ft backend
Behdad Esfahbod 60a4f2e6 2023-01-12T19:12:46 [test-paint] Detect FreeType COLRv1 from struct size
Behdad Esfahbod b7839672 2023-01-12T18:58:07 [test] Minor save glyph_count
Matthias Clasen cca0ed9b 2023-01-11T06:44:25 test-paint: Add variable font tests These needs freetype master to work.
Matthias Clasen 1cb5a87f 2023-01-10T22:13:44 test-pain: Print out extend for color lines Update all expected results to include this value.
Matthias Clasen 6648e6e3 2023-01-10T22:07:44 Add one more paint test Add a test for the clip_box_top_left_glyph, since we've seen broken rendering with it.
Khaled Hosny 8460909e 2023-01-10T17:43:10 [build] Fix make dist
Garret Rieger 0f01a836 2023-01-10T01:09:44 [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.
Matthias Clasen b2087132 2023-01-09T16:30:25 test-paint: Fix use of g_test_skip
Matthias Clasen eb0f0279 2023-01-09T15:33:34 test-paint: Avoid g_test_skip_printf This is relatively recent api we don't need.
Matthias Clasen e61c2be4 2023-01-09T15:25:29 test-paint: Skip tests if ft COLRv1 is missing
Matthias Clasen 1d662632 2023-01-09T15:01:59 test-paint: More output for failures
Matthias Clasen d0108d31 2023-01-08T11:20:21 Add more paint tests These tests compare the output of the ft and ot implementations for all the glyphs in the test_glyphs font.
Matthias Clasen 5f976d86 2023-01-09T13:42:22 test-paint: Use %.3g for results This produces more readable output.
Matthias Clasen ec78a486 2023-01-09T13:38:19 Run paint tests at upem scale This avoids problems with rouding.
Matthias Clasen a085efa6 2023-01-09T13:11:16 test-paint: Fix font setup for ft We must call hb_ft_font_set_funcs after setting the font scale.
Matthias Clasen 26f713a7 2023-01-09T12:54:06 paint-test: Use larger scales A scale of 20 is noise, so use 1000.
Behdad Esfahbod e886b6b8 2023-01-09T10:26:01 [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.
Matthias Clasen 347910fd 2023-01-08T20:06:24 Add a draw test This test compares output between ft and ot font funcs.
Matthias Clasen 42047070 2023-01-08T16:08:16 test-paint: More helpful output No need to print ASCII chars as hex.
Behdad Esfahbod 3fd6c0d9 2023-01-08T12:30:26 [test-paint] Remove unused FT_Library
Behdad Esfahbod 28be4f88 2023-01-08T12:19:41 [test-paint] Actually run against hb-ft
Matthias Clasen ed7d0234 2023-01-08T11:47:19 test-paint: Limit the precision of clip boxes Update expected test results.
Matthias Clasen 10390ec5 2023-01-08T09:06:03 Update expected test results
Matthias Clasen f3ce1374 2023-01-08T09:01:31 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.
Matthias Clasen d0aaea23 2023-01-07T16:27:13 Update test results for paint-test These were affected by the PaintComposite optimization.
Qunxin Liu 1eb5445e 2023-01-06T15:19:16 [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.
Behdad Esfahbod c54debc7 2023-01-05T11:54:06 [face] Add hb_face_collect_nominal_glyph_mapping Fixes https://github.com/harfbuzz/harfbuzz/issues/3973
Matthias Clasen 9f3b59fe 2022-12-31T16:19:20 Update expected test results These need updates, because they record every callback, and we've changed what callbacks are happening.
Matthias Clasen 313f74a6 2022-06-29T07:32:58 Add a basic test for hb-coretext api This tests what would be my minimum assumption about this api. It was written blindly.
Matthias Clasen 661baf40 2022-06-29T07:31:46 Add a basic test for hb-ft api This tests what would be my minimum assumption about this api.
Matthias Clasen 2a515679 2022-12-26T16:50:32 [paint] Add a test for recursion
Matthias Clasen 1eb4d002 2022-12-26T12:56:33 Try to fix the build with msvc
Matthias Clasen 00e93102 2022-12-26T08:31:22 Add a test for hb_ot_color_glyph_has_paint
Matthias Clasen e7b0947a 2022-12-26T08:24:39 Add a test for hb_ot_color_has_paint
Matthias Clasen a7a93b85 2022-12-24T14:05:12 Drop accidentally added ttx files
Behdad Esfahbod 6ccbfabd 2022-12-24T10:44:25 [paint] Return bool from paint_image() Fixes https://github.com/harfbuzz/harfbuzz/issues/3974
Matthias Clasen d00e97f1 2022-12-24T06:58:44 Add test-paint to the autotools build
Matthias Clasen 3478728e 2022-12-24T08:51:23 Fix test-paint build without freetype
Matthias Clasen 9b9d7c7b 2022-12-24T05:34:47 Plug a memory lek in paint tests
Matthias Clasen f9c865a8 2022-12-23T20:20:33 Update test results These were changed by the introduction of clip boxes.
Matthias Clasen 55b7af6b 2022-12-23T18:01:45 Tweak paint-tests
Matthias Clasen 44b48845 2022-12-23T16:26:05 Add tests for hb_color_line_t Test a few things that were broken with the ft implementation before.
Behdad Esfahbod a4a86c0e 2022-12-23T13:52:22 [test-paint] g_test_message
Behdad Esfahbod dcab5679 2022-12-23T13:47:37 [test-paint] Don't use g_test_fail_print() for older glib
Matthias Clasen 8e197f50 2022-12-23T15:31:16 Add missing paint test results
Matthias Clasen 3b021c55 2022-12-23T14:30:29 Run paint tests with ft font funcs
Matthias Clasen ca190aab 2022-12-23T14:03:03 Split off the hb-paint tests They belong in their own file.
Matthias Clasen ee7bbdf3 2022-12-23T00:01:20 tests: Update expected results These were changed by fixes for glyph transforms.
Matthias Clasen 3993a407 2022-12-22T23:55:27 test: Add some verification hints