test/api


Log

Author Commit Date CI Message
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 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
Matthias Clasen 47dbebff 2022-12-22T16:06:51 [paint] Add COLRv0 tests
Behdad Esfahbod 3c972867 2022-12-22T11:40:06 More s/hb_font_get_glyph_shape/hb_font_draw_glyph/
Matthias Clasen c2219339 2022-12-21T18:39:27 [paint] Preserve foreground information
Matthias Clasen 6387004c 2022-12-21T16:43:19 [paint] Simplify api Drop the hb_paint_context_t struct from the API, and only pass the font where we need it.
Matthias Clasen 71bd5a0d 2022-12-21T16:18:46 [paint] Resolve colors We don't need to pass the index/alpha pairs to client callbacks, and can just resolve the colors internally. Update test results.
Matthias Clasen 9be01b6b 2022-12-21T14:04:32 [paint] Pass hb_paint_context_t along Replace the font argument with a hb_paint_context_t that carries the font, the palette index and the foreground color. The hb_font_paint_glyph() api now takes the palette index and the foreground color as extra arguments. Update all callers and regenerate test results.
Matthias Clasen 97224f3b 2022-12-21T02:11:36 [paint] Pass font to all callbacks This will lead to easier implementations. At the same time, we change the push_clip_glyph callback to use the font as-is, no unscaling needed. Update all callers and expected test results.
Matthias Clasen b0fa40b2 2022-12-19T13:16:10 tests: More diagnostics
Matthias Clasen 290bb338 2022-12-19T02:39:14 Dist test result files
Matthias Clasen 74ccc1e7 2022-12-19T00:49:02 tests: Produce useful output on failure
Matthias Clasen 08429110 2022-12-19T01:08:41 Tests: Fix memleak pointed out by valgrind
Behdad Esfahbod d8cb7cee 2022-12-18T14:35:36 [test] Try fixing bots with old glib
Matthias Clasen 3b021c55 2022-12-23T14:30:29 Run paint tests with ft font funcs
Matthias Clasen 2d4678b6 2022-12-17T22:30:31 Add a comment
Matthias Clasen ca190aab 2022-12-23T14:03:03 Split off the hb-paint tests They belong in their own file.
Matthias Clasen 30a6fd04 2022-12-17T18:20:00 [colr] Add some tests
Qunxin Liu 8eadb836 2022-11-10T10:33:26 [subset] Update hb_subset_input_override_name_table API Override the name string for the NameRecord identified by name_id, platform_id, encoding_id and language_ids specified by the user. If a record with specified name_id does not exist, this API will create a new NameRecord with provided info and insert it to the name table.
Behdad Esfahbod 527823cc 2022-11-19T15:19:08 [unicode] Destroy user_data in set_funcs fail paths This is what the font_funcs / draw_funcs do.
Qunxin Liu 6314aa7d 2022-10-28T10:44:48 [subset] add an experimental API that can override name strings for specified name_id
David Corbett ade87e15 2022-08-27T18:34:28 [Unicode 15] Add tests
Behdad Esfahbod 4ab7e579 2022-08-12T12:17:37 Make HB_BORING_EXPANSION opt-in instead of opt-out Fixes https://github.com/harfbuzz/harfbuzz/issues/3757
Garret Rieger f3aff45e 2022-07-29T21:33:11 [repacker] Update call to hb_subset_repack_or_fail in tests.
Behdad Esfahbod 1945b400 2022-07-25T10:45:55 [cpluscplus] Wrap hb-subset types as well Also changes signature of get_user_data of hb.h types to take const object. This is safe.
Frédéric Wang 32e542d6 2022-06-29T06:45:38 try & fix build errors on the bot
Frédéric Wang 03d23767 2022-06-29T06:21:31 [math] Improve fuzzing coverage Extend testing to cover parts that are missing according to the recent oss-fuzz-coverage report: - Retriving all constants from MathConstants. - Retrieving entries from MathKern, MathGlyphPartRecord and MathGlyphAssembly. - Retrieving italic correction from MathGlyphAssembly. - Choosing between horizontal/vertical offset in MathVariants. https://storage.googleapis.com/oss-fuzz-coverage/harfbuzz/reports/20220627/linux/src/harfbuzz/src/hb-ot-math-table.hh.html https://github.com/harfbuzz/harfbuzz/issues/3688
Behdad Esfahbod d3308f47 2022-06-27T11:28:44 [font] Optimize font scaling further
Behdad Esfahbod 556e7078 2022-06-26T17:48:43 [font] Optimize glyph scaling
Garret Rieger af74ab45 2022-06-16T18:12:09 [repack] always run the sort in repack. This is needed to ensure virtual link ordering constraints are respected when repack is being called from fontTools. For subset usage, repack won't be called if the graph doesn't already overflow so this change doesn't cause any extra work.
Behdad Esfahbod b39b5f2f 2022-06-03T04:10:28 [name] Implement approximate language matching Very rudimentary. Fixes https://github.com/harfbuzz/harfbuzz/issues/3354
Behdad Esfahbod 7aacdd05 2022-06-03T02:10:06 [cplusplus] Test hashing shared_ptr / unique_ptr
Behdad Esfahbod d7785a6d 2022-06-02T12:42:24 [cplusplus] Add unique_ptr
Behdad Esfahbod e0f3cab2 2022-06-01T11:51:43 [cplusplus] Add hb-cplusplus.hh Fixes https://github.com/harfbuzz/harfbuzz/issues/2152
Garret Rieger 3472f73b 2022-05-25T21:49:12 [subset] also include no subset tables when guessing which tables are present.
Garret Rieger 9564d987 2022-05-25T21:16:37 [subset] fix subsetting of faces created via hb_face_create_for_tables. Fixes #3609.
Garret Rieger 4e11da05 2022-05-20T01:42:34 [repacker] update repacker test golden file. Changed due to removal of Kahn sorting.
Behdad Esfahbod 25393288 2022-05-19T17:19:21 [test] Fix compiler warning
Andrew John 01829882 2022-03-25T08:36:44 [set] Add call to export set contents to an array. (#3500) [set] Add hb_set_next_many.
Behdad Esfahbod 36b8f974 2022-03-21T21:50:04 Update tests for recent changes
Andy John ef588ea9 2022-03-21T13:29:22 Add option to insert a sorted arrays of values to sets.
Qunxin Liu a35757c6 2022-02-02T10:30:34 [repacker] expose hb_subset_repack() API, hb_object_t and hb_link_t structs
Garret Rieger f6071c16 2022-02-28T14:45:40 [subset] Rename codepoint -> unicode in subset plan api
Behdad Esfahbod 222301bf 2022-02-24T12:55:01 Merge pull request #3429 from harfbuzz/external_plan [subset] expose subset plan in public subsetting API
Matthias Clasen d4cb0772 2022-02-18T18:25:56 Add a missing file The style test is using notosansitalic.ttf now, but I forgot to add it with the test. Fix that.
Matthias Clasen 16b232be 2022-02-18T18:05:58 [hb-style] Fix the sign of slant ratios We want negative slant angles to yield positive slant ratios. Fix that. Test included.
Matthias Clasen e76061a7 2022-02-18T17:27:19 [hb-style] Fix synthetic slant values When reporting the slant ratio of a font that has synthetic slant set, we were reporting twice the expected value. Fix that. Test included.
Behdad Esfahbod f8e9e315 2022-02-17T14:34:46 Merge pull request #3437 from matthiasclasen/synthesize-missing-baselines [BASE] Synthesize missing baselines
Matthias Clasen f81578fd 2022-02-13T19:15:36 [ot-layout] Synthesize missing baselines Add a variation of hb_ot_layout_get_baseline that synthesizes missing baselines, using heuristics in part taken from the CSS Inline Layout Module, Level 3. Includes some new tests for synthesized baselines. The base2.ttf is a subset of Noto Sans Bengali that includes just the Bengali Ka. New API: hb_ot_layout_get_baseline_with_fallback
Behdad Esfahbod d2998faa 2022-02-16T14:37:09 Merge pull request #3410 from harfbuzz/boring-expansion [Boring Expansion] >64k loca & hmtx tables This does two things: The num-glyphs reported by the face now is the maximum reported by the maxp and that deduced from the length of the loca table; I think this is the right thing to do anyway; According to OpenType such loca tables are invalid. The interpretation hmtx tables that have excessive bytes at the end, again, invalid according to OpenType, has changed. Previously we were interpreting those excessive bytes as extra lsb values. Now we interpret them as extra advance values, the last of which is repeated for all missing glyphs. Again, these are tables that are invalid according to OpenType, and the advances are for glyph indices beyond maxp table's num-glyphs. The combined effect is that the font can have shapes and advances for gid's beyond the maxp limit of 64k. In fact, maxp table becomes optional.
Khaled Hosny cfa8cd7f 2022-02-16T11:42:36 [autotools] Fix make distcheck The test-draw.c can now optionally uses hb-ft, but automake file was not passing FreeType cflags or libs to it.
Behdad Esfahbod 67eb9acf 2022-02-15T17:17:49 [config] Add HB_NO_BORING_EXPANSION
Behdad Esfahbod 197ed8f5 2022-02-15T14:30:12 [test/api] Fix leaks
Behdad Esfahbod 531c27d1 2022-02-15T14:20:54 Fix build
Behdad Esfahbod 8b7ccc41 2022-02-15T14:15:12 [hmtx] Implement [boring-expansion] >64k expansion This implements https://github.com/be-fonts/boring-expansion-spec/issues/7
Behdad Esfahbod 379e526a 2022-02-14T15:02:31 [test] Add test for current hmtx logic
Behdad Esfahbod ed6d287d 2022-02-02T14:10:16 [ot-face] Load num-glyphs from `loca` table before `maxp` Implements [boring-expansion] [maxp] Relax https://github.com/be-fonts/boring-expansion-spec/issues/6
Ebrahim Byagowi 6b75a30a 2022-02-14T01:38:06 [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.
Behdad Esfahbod ae223764 2022-02-13T15:39:14 [test/draw] Typo
Ebrahim Byagowi 0429921c 2022-02-14T00:16:35 [draw/test] Add test for freetype callback Let's have that part of the code also covered.
Ebrahim Byagowi d4588204 2022-02-13T23:49:41 [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.
Khaled Hosny 0e357c50 2022-02-11T04:31:13 [draw] Test scaling subfont differently from parent
Khaled Hosny aca80a4a 2022-02-09T22:44:38 [draw] Add test for applying synthetic slant
Khaled Hosny 052fd2d8 2022-02-09T22:10:23 [draw] Add test for hb_draw_move_to() etc
Behdad Esfahbod f1a9a9cc 2022-02-03T14:10:40 [draw-state] Pass state down to callbacks
Behdad Esfahbod 9f05362d 2022-02-03T13:08:32 [test-draw] Fix compiler warning
Behdad Esfahbod 1740916e 2022-02-03T12:50:47 [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.
Behdad Esfahbod 5610fa1d 2022-02-03T10:29:04 [test-draw] Re-enable two disabled tests
Behdad Esfahbod 8b4f4290 2022-02-03T01:14:47 [draw] Virtualize hb_font_draw_glyph() into hb_font_get_glyph_shape() To be implemented in hb-ft.
Behdad Esfahbod 2bed4f46 2022-02-02T21:42:48 [draw] Fix draw signatures
Behdad Esfahbod e0ac6c58 2022-02-02T18:57:12 Remove remaining traces of HB_EXPERIMENTAL_API
Behdad Esfahbod 5207ce82 2022-02-02T18:54:10 [draw] Enable draw tests Disable two failing ones.
Behdad Esfahbod 157caf25 2022-02-02T18:46:34 [test-draw] Fix compiler warning
Garret Rieger 670ef070 2022-02-11T16:01:33 [subset] Change subset plan create to be or_fail.
Garret Rieger ae8d373b 2022-02-11T14:54:23 [subset] add subset plan reference, set/get user data functions.
Garret Rieger b65e48a7 2022-02-11T12:44:58 [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.
Alexis King 81754a5a 2022-02-09T12:00:47 [ot-math] Add hb_ot_math_get_glyph_kernings closes #3396
Alexis King 1bc4bad7 2022-02-07T19:57:25 [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’.
luz paz e2e30506 2022-01-16T07:00:53 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`
Matthias Clasen 8dc86d07 2021-11-01T19:57:11 Add a test font scale rounding behavior This test verifies the fix for https://github.com/harfbuzz/harfbuzz/issues/3274
Qunxin Liu 8c583db9 2021-10-02T20:32:30 [subset] COLRv1: update subset() method for new strutc ClipList and VarIdxMap Also fix issues in struct PaintTransform definition
Garret Rieger d700646c 2021-09-16T11:23:09 [subset] In preperation for 3.0.0 release remove legacy subsetting api methods.
David Corbett a0101a31 2021-09-14T18:38:50 [Unicode 14] Add tests
Khaled Hosny 4d9b7de0 2021-09-11T00:43:43 [style] Prepare for release
Behdad Esfahbod 201cbe3c 2021-09-09T11:09:46 [style] Rename HB_STYLE_TAG_SLANT to HB_STYLE_TAG_SLANT_ANGLE