test/api


Log

Author Commit Date CI Message
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
Garret Rieger 102666da 2021-08-27T10:31:37 [subset] add test for hb_subset_input_set (...).
Behdad Esfahbod 955f86a0 2021-08-24T11:17:10 [test-set] Fix compiler warnings
Garret Rieger f2441a4b 2021-08-24T15:53:32 [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.
Garret Rieger f84daccb 2021-08-24T14:20:26 [set] include null pool sets in the permutations tested by inverted_operations.
Garret Rieger 915550ab 2021-08-19T17:48:38 [set] remove inverted test TODO.
Garret Rieger c4ed5829 2021-08-19T17:47:41 [set] add test for inverted set operations. This test checks all possible set configurations against each operation type.
Garret Rieger 325fd6dd 2021-08-19T15:54:31 [set] add tests for inverted set equality.
Garret Rieger 287032af 2021-08-19T15:45:28 [set] update set test TODO list.
Garret Rieger 5c003d80 2021-08-19T15:41:12 [set] add tests for inverted previous iteration.
Garret Rieger 3f2cc582 2021-08-19T15:00:07 [set] add basic and iteration set inverion tests.
Garret Rieger cb05c363 2021-08-13T15:19:20 [subset] add some basic tests for the legacy subset methods.
Khaled Hosny 6ac6a2b2 2021-08-12T00:04:32 [test] hb_ot_layout_language_get_feature_tags()
Khaled Hosny e9b743b2 2021-08-11T23:51:12 [test] hb_ot_layout_script_get_language_tags()
Khaled Hosny bf438b81 2021-08-11T23:23:51 [test] hb_ot_layout_table_get_feature_tags()
Khaled Hosny 2f88ea5a 2021-08-11T23:12:00 [test] hb_ot_layout_table_find_script()
Khaled Hosny f60caad7 2021-08-11T22:54:30 [test] hb_ot_layout_table_get_script_tags()
Garret Rieger c08f1b89 2021-08-10T12:29:32 [map] fix incorrect population count in hash map. If the same key was set twice the population was being incorrectly incremented.
Garret Rieger 2c024dc3 2021-08-04T11:38:38 [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.
Khaled Hosny 2cc9ed2b 2021-08-02T22:00:11 [test] More lookup_collect_glyphs() tests
Khaled Hosny 06640374 2021-08-02T19:52:59 [test] More lookup_collect_glyphs() tests
Khaled Hosny ecdd8e3f 2021-08-02T19:36:20 [test] More lookup_collect_glyphs() tests
Khaled Hosny f998d7e1 2021-08-02T16:10:13 [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.
Behdad Esfahbod 05cf8128 2021-08-01T07:59:25 [util/hb-shape] Fix use of EOF as end-of-line EOF is -1, which was being treated as a valid char (255). Use int instead.
Garret Rieger f9d8e4a9 2021-07-29T15:25:41 [subset] switch ..._set_flags to not take a mask.
Garret Rieger 3d534b14 2021-07-29T11:52:14 [subset] convert subset input flags into bit flags. Store the flags in a bit set. Updates the public api to work with the bit set directly.
Garret Rieger 9ab751ac 2021-06-23T13:38:47 [subset] Remove hb_subset(). Leaving just hb_subset_or_fail().
Garret Rieger aba2e131 2021-06-09T16:23:35 [subset] Remove hb_subset_input_get/set_overlaps_flag ().
Garret Rieger 7d82191f 2021-06-09T16:20:55 [subset] Remove hb_subset_input_get/set_name_legacy ().
Garret Rieger 942636ae 2021-06-09T16:18:39 [subset] Remove hb_subset_input_get/set_retain_gids.
Garret Rieger 77b4a1cd 2021-06-09T14:11:17 [subset] Remove hb_subset_input_get/set_desubroutinize.
Garret Rieger 8bf5d4d4 2021-06-09T14:05:17 [subset] Remove hb_subset_input_get/set_drop_hints.
Garret Rieger 0da9158f 2021-06-29T14:23:37 [subset] Remove OffsetTo::serialize(). Convert remaining uses of it to serialize_serialize() which correctly uses the object packer.
Behdad Esfahbod bdfed8f1 2021-06-14T15:46:04 [blob] Add failing versions of create API Fixes https://github.com/harfbuzz/harfbuzz/issues/2567 New API: +hb_blob_create_or_fail() +hb_blob_create_from_file_or_fail() Use these in util/ to distinguish empty file from not-found file. Only err on the latter.
Garret Rieger 0989b555 2021-05-18T17:12:50 [subset] Add test for overlaps flag setting.
Qunxin Liu f739e1dc 2021-05-11T11:44:32 [subset] subset both CPAL and COLRv1
Kurt Kartaltepe 2000f47a 2021-05-19T00:34:09 [set] Compute is_subset by comparing pages. Test subsets one page at a time instead of by codepoints. On my machine this is about 250x faster than the previous implementation.
Garret Rieger 2b764764 2021-04-30T13:34:16 [subset] update test-subset-gpos expected files.
Garret Rieger 425ba1f4 2021-04-19T18:01:24 [subset] fixes infinite loop in hb_set_get_max(). Fixes https://oss-fuzz.com/testcase-detail/5363902507515904
Behdad Esfahbod 47cbf8f2 2021-03-30T21:01:44 [test] Silence more compiler warnings
Garret Rieger 1b79b8cd 2021-03-16T15:23:11 [subset] update gpos tests to reflect updated behaviour.
Behdad Esfahbod 1c693e8c 2021-02-20T18:53:20 [test] Fix unused-var warning
justvanrossum 1551f3d5 2021-02-18T11:57:37 fixing more expected test results
justvanrossum 79e4f436 2021-02-17T10:21:58 Apply rounding correctly when calculating glyph extents for CFF and CFF2; adjust expected test results
justvanrossum d01ebeae 2021-02-17T10:13:54 calculate extents based on scaled then rounded values; undo two of the earlier test result adjustments
justvanrossum 1d02e9c6 2021-02-16T21:39:43 two more adjusted expected extents results (still not convinced this is the right thing, though)