test/subset


Log

Author Commit Date CI Message
Qunxin Liu 2d001a0a 2023-11-08T11:11:51 [subset] OTS doesn't allow ligature attachment offset to be 0
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.
Qunxin Liu d550e16a 2023-11-06T10:31:05 [instancer] Recalc avgcharwidth after instancing
Qunxin Liu 6baf791e 2023-11-03T11:06:07 [instancer] add tests
Qunxin Liu 31b5b2b1 2023-11-02T09:08:36 [instancer] add tests for valueformat
Qunxin Liu 413af0a9 2023-11-02T11:14:48 [instancer] When partial instancing, subset LigCaretList after VarStore instantiation
Qunxin Liu f6f35f73 2023-10-27T09:31:07 [instancer] add tests for feature variations partial instancing
Qunxin Liu e595fe75 2023-10-18T16:00:06 fix bots partial instancing tests are wrapped by experimenal_api, do not enable them in Makefile
Qunxin Liu ce466989 2023-10-18T15:49:57 [subset] update tests to reflect changes in GDEF.MarkGlyphSetsDef and Lookup.MarkFilteringSet
Qunxin Liu bde6fb83 2023-10-18T10:21:02 add missing file for test empty_region_vardata
Qunxin Liu 57dac23d 2023-10-17T17:11:13 [instancer] add tests Also update tests to gei rid of no-tables-with-item-variations profile
Garret Rieger bbd53fcf 2023-10-10T21:41:42 Remove glyph_map test that uses retain gids. We no longer allow the use of glyph map + retain gids (see: https://github.com/harfbuzz/harfbuzz/blob/main/src/hb-subset-plan.cc#L817). Also add the test to the meson file so it will be run by default.
Qunxin Liu 2415d5f2 2023-09-27T13:33:09 [instancer] update tests to include GDEF/GPOS tables
Qunxin Liu ef4ff1d6 2023-09-20T11:35:33 [instancer] make varstore items sorting method match fonttool's Also update expected tests
Qunxin Liu 2d2818c0 2023-09-20T10:30:47 [instancer] update expected tests to include HVAR/VVAR tables
Qunxin Liu 6e49128a 2023-09-01T10:27:40 [instancer] always check and update default wght/width/slnt if necessary Sometimes default values in original file are incorrect, and if default value for an axis is not changed, then these values won't be updated
Qunxin Liu 7b5daff5 2023-08-31T17:50:34 [instancer] add tests for mvar partial instancing
Qunxin Liu dd8d3576 2023-08-22T12:54:50 [instancer] enable partial instancing tests when experimental api is on
Qunxin Liu bea26446 2023-08-15T14:20:54 [instancer] reference all points for gvar If a point is not referenced and delta is not inferred, set delta to 0
Qunxin Liu 0aa5dafe 2023-08-08T08:33:11 fix bots. -Also disable partial instancing tests for now, cause the command option is wrapped by experimental_api
Qunxin Liu 77b158c7 2023-08-07T16:02:02 [instancer] add tests for gvar partial instancing
Garret Rieger 77a81554 2023-05-04T23:01:56 [subset] Add some basic tests for a provided glyph map.
Behdad Esfahbod 1d31da91 2023-04-25T15:34:06 Merge pull request #4205 from harfbuzz/gvar-optimize Gvar optimize
Garret Rieger e41f3171 2023-04-25T20:54:27 [subset] Update expectation files for full_instance tests.
Garret Rieger 2175f5d0 2023-04-24T21:13:18 [subset] Fix inefficient ItemVariationStore subsetting w/ retain_gids. ItemVariationStore is relying on the assumption that the inner_map is populated for all output glyphs, this is not true for subsetting operations with retain gids enabled. Fixes fuzzer timeout: https://oss-fuzz.com/testcase-detail/4575222591520768.
Garret Rieger 3db6baa2 2023-04-17T20:01:17 [subset] add test for lig glyph fix.
Garret Rieger 14b9d8d5 2023-04-14T20:44:15 [subset] add --no-layout-closure flag. Disables layout glyph closure. Fixes #4192.
Qunxin Liu 96ed2072 2023-04-04T10:33:58 [instancer] update bound metrics for CFF2 instancing
Qunxin Liu c1acfe99 2023-03-22T19:06:58 [instancer] bug fix in TupleVariationData get_size () We need to iterate TupleVariationHeader when calculating the total size
Qunxin Liu ab87d7d2 2023-03-20T12:24:22 [instance] add tests for colrv1 full instancing
Garret Rieger a84cae42 2023-03-15T02:39:57 [subset] Don't add invalid gids (-1) to the glyphset when loading glyph map from the accelerator.
Qunxin Liu 204e155a 2023-03-14T10:25:31 [subset] Add tests for collecting name_ids from STAT and FeatureParams
Qunxin Liu a975ec48 2023-02-14T13:26:59 [instancer] apply cvar deltas
Qunxin Liu 605aed05 2023-02-24T10:17:32 [instancer] bug fix in post table applying mvar deltas
Garret Rieger ddd0f7f4 2023-02-22T20:23:34 [subset] Add a test for CFF2 instancing. Adds option to disable the fonttools comparison check in the test. This is needed since CFF2 instancing is not yet supported in fonttools.
Qunxin Liu af1e605b 2023-02-10T11:08:05 [instancer] bug fix It's possible that length of all_points equals to 4 for non-empty glyphs: a composite glyph which contains only one child glyph that is empty.
Qunxin Liu 61559568 2023-01-27T11:05:13 [subset/COLR] add tests for copying varStore
Qunxin Liu 5e868703 2023-01-25T12:27:16 [instancer] compute head/maxp values using only non-empty glyphs
Qunxin Liu 73e6f6cc 2023-01-24T16:14:11 [instancer] enable the missing test
Qunxin Liu 27f72f0d 2023-01-24T16:08:32 [instancer] avoid double free for compiled glyph bytes also increase the HB_GLYF_MAX_POINTS limit to 20000 cause the test file has a .notdef glyph which is a composite glyph and has 10176 points after get_points() call
Qunxin Liu 89d33255 2023-01-20T14:15:19 [instancer] add tests
Garret Rieger ea1ee0d4 2023-01-14T00:23:53 [instance] drop and don't collect lookups from feature variations when fully instancing. This previously incorrectly collected lookups that could be reached via feature variations that are dropped and not activated by the current instance position.
Garret Rieger c324d999 2023-01-12T18:15:07 [instancing] Add tests for MVAR instancing.
Garret Rieger 9fbe52b8 2022-12-12T20:24:24 [subset] enable instancing tests by default.
Garret Rieger eda02c2e 2022-12-05T20:18:41 [subset] Move hb_subset_preprocess to be non-experimental.
Garret Rieger 64e8707e 2022-11-24T18:24:50 [subset] don't use hb repacker when generating test files from fonttools.
Garret Rieger ff3cac0c 2022-11-23T23:50:49 [subset] Fix unecessary trailing 0 bytes left by ContextFormat2 pruning. Uneeded rules where beind removed from the count by the bytes for them was being left in the font.
Garret Rieger 2822b589 2022-11-03T19:49:49 [subset] Include instancing tests in distribution. Automatically enable them when the experimental api is enabled.
Qunxin Liu 8a552483 2022-10-27T09:43:07 [instance] update OS2/.usWeightClass and .usWidthClass when no-prune-unicode-ranges option is enabled
Garret Rieger db22bfb3 2022-10-17T18:37:07 [subset] Remove Franklin from the tests which is not an open source font.
Garret Rieger 3394ec70 2022-10-13T23:02:54 [subset] use subset accelerator in tests. This ensures it produces equivalent subsets as without the accelerator.
Qunxin Liu d5fc4a73 2022-09-14T14:43:20 [instance] add tests for featureVariations Also updated the script that is used to generate tests.With fonttools, we now do instancing first and then subsetting. With different order of subsetting and instancing operations on the same VF file, fonttools seems to generate 2 different font files with different glyph set. 1. do subsetting and then instancing: this seems result in a larger glyph set in the font file. Lookups are collected from both retained features and all possible alternate featurevariations, this leads to a larger glyph set after glyph closurei. And instancer doesn't redo glyph closure, it does lookups pruning only. 2. do instancing and then subsetting: lookups are collected from features that are replaced already and possible alternate feature variations
Qunxin Liu 47094490 2022-08-31T12:01:32 [instance] add benchmarks for instancing
Qunxin Liu 88c02e00 2022-08-26T08:34:12 [instance] add tests for full instancing Also update previous tests with GDEF/GPOS tables
Qunxin Liu f887ee0c 2022-07-27T13:18:21 [instance] update post.italicAngle Add tests for instancing glyf/hmtx
Qunxin Liu f1a69ff1 2022-06-30T16:22:15 [instance] update scripts for testing instancing
Garret Rieger d6f579e9 2022-06-30T22:22:03 [subset] add tests that exercise script filtering.
Garret Rieger 858570b1 2022-06-01T18:08:09 [subset] add some additional 32bit var store cases. Test the path where the 32 bit delta is not included.
Garret Rieger 209d6aa2 2022-06-01T18:02:03 [subset] Update make files for 32bit_var_store test.
Garret Rieger 9c41bfe1 2022-06-01T17:53:14 [subset] Add subset test of font with 32 bit delta in a var store.
Garret Rieger 52d59bf1 2022-05-10T19:40:37 [perf] Make subset benchmark data driven.
Garret Rieger b051f3fa 2022-05-05T23:27:34 [subset] Fix cpal subsetting when there are partial palette overlaps. The existing code doesn't correctly handle the case where palettes partially overlap in the color record array. This changes the subsetting to only share entries in the color record array when palettes have the same first color index. Partially overlapping palettes will be converted to disjoint segments in the color record array. Updates one of the color tests to use multiple palettes. Also fixes fuzzer: https://oss-fuzz.com/testcase-detail/5568200165687296.
Behdad Esfahbod a003fc0d 2022-03-25T09:37:50 Remove accidental files
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.
Qunxin Liu 7cb002cb 2022-03-14T11:40:35 [subset] bug fix in prune_langsys we should not cache visited langsys cause 2 different Record<Langsys> could have different Tag while pointing to the same Langsys, a langsys is redundant in Record<Langsys> A does not mean it's redundant in Record B. Same thing for visited_script. Also adding the number of features in the LangSys's feature list to the visited langsys count so it's more accurate. Plus some improvement in langsys compare()
Behdad Esfahbod b3f8288c 2022-02-12T14:52:42 [test/subset] Don't hash files without reason Fixes https://github.com/harfbuzz/harfbuzz/issues/3118#issuecomment-894021518
Garret Rieger bc899650 2022-01-28T13:54:10 [subset] Fix for issue #3397. cur_intersected_glyphs gets modified during recursion leading to incorrect filtering of sub tables in some cases. So don't use cur_intersected_glyphs. Instead just add an additional entry onto the parent_active_glyphs () stack. Additionaly expands NotoNastaliqUrdu tests to include coverage of the issue from #3397.
Qunxin Liu 706014f6 2021-12-01T20:20:12 [subset] (Chain)ContextSubst glyph_closure fix - When pos_glyphs is empty, use current full glyphs set as input for subsequent recursive closure process - Also increase max_lookup_visit_count to 35000 cause a real font file hit previous limit 20000 and some lookups are dropped unexpectedly
Qunxin Liu 51655a07 2021-12-05T19:27:57 [subset] COLR : only include glyphs after COLR closure
Qunxin Liu 74b46b29 2021-12-02T19:50:16 [subset] MATH: don't serialize coverage table when iterator is empty when iterator is empty, just set coverage offset to 0. serialize() in coverage will at lease write out a 16-bit format header.
Garret Rieger 9121ed0c 2021-11-30T13:45:22 [subset] Improve sharing of Ligature subtables. Ligature subtables use virtual links to enforce an ordering constraint between the subtables and the coverage table. Unfortunately this has the sideeffect of prevent the subtables from being shared by another Ligature with a different coverage table since object equality compares all links real and virtual. This change makes virtual links stored separately from real links and updates the equality check to only check real links. If an object is de-duped any virtual links it has are merged into the object that replaces it.
Garret Rieger 95329081 2021-11-26T16:18:42 [subset] further optimize cmap4 packing.
Garret Rieger 59914382 2021-11-26T14:19:39 [subset] Don't pad glyphs when using long loca.
Garret Rieger d9660fd5 2021-11-25T18:15:35 [subset] Make cmap4 packing more optimal. The current CMAP4 implementation uses whatever the current codepoint ranges are and then encodes them as indivudal glyph ids or as a delta if possible. However, it's often possible to save bytes by splitting up existing ranges and encoding parts of them using deltas where the cost of splitting the range is less than encoding each glyph individual.
Qunxin Liu 903a6bae 2021-11-15T19:58:33 [subset] layout_features filtering fix we should not use get_size (), which returns length * item_size
Khaled Hosny 69d8f27c 2021-11-20T17:09:15 [meson] Require 0.55.0 We implicitly require it for building ragel subproject. This new version requirement should satisfied in both Fedora 33 and Debian bullseye, and not be too cutting edge for us.
Qunxin Liu 84dc4e85 2021-11-08T09:36:31 [subset] avoid writing out duplicate extra glyph names in post table Add check for possible duplicate with other name index
Qunxin Liu ca418cac 2021-11-17T16:42:08 [subset] keep features that have FeatureParams and the tag is "size"
Qunxin Liu e88fc41e 2021-11-18T16:53:36 [subset] inputSequence could be empty, change the sanity check
Qunxin Liu 540f19b6 2021-10-29T17:11:53 [subset] fix bug in (Chain)ContextFormat2 Only keep rulesets for glyphs class numbers that survived in coverage
Garret Rieger e260eeb9 2021-11-02T15:31:32 [subset] Update test goldens for gdef.glyphset.
Qunxin Liu 60e20364 2021-11-02T15:02:36 [subset] use glyphset_gsub instead of glyphset for GDEF
Garret Rieger e39647c0 2021-11-02T15:25:05 [subset] update subset goldens to fix tests.
Qunxin Liu 364b6b39 2021-10-31T14:38:20 [subset] Don't assume FeatureList is sorted Though the spec said FeatureRecords are sorted alphabetically by feature tag, there're font files with unsorted FeatureList. And harfbuzz is not able to subset these files correctly because we use binary search in finding featureRecords when collecting lookups. Also find_duplicate_features needs to be updated to handle this.
Garret Rieger 49c93924 2021-09-24T09:28:10 [subset] During LigatureSubstFormat1 subsetting always place Coverage last. In Windows 7 on Chrome if the coverage table comes before any of the LigatureSet or Ligature subtables the font won't load. This changes the packing order to always place the Coverage table last. Virtual links are used to ensure the repacker maintains the desired ordering. Coincidentally fontTools also does the same thing (https://github.com/fonttools/fonttools/blob/a3f988fbf621142d7d9b3e68a69725b88f358869/Lib/fontTools/ttLib/tables/otTables.py#L1137) to reduce overflows during packing.
Behdad Esfahbod 42626369 2021-10-23T13:18:22 Merge pull request #3248 from googlefonts/connected_components [repacker] Keep connected subgraphs in the same space.
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 79937d24 2021-10-05T12:53:21 [repacker] Add repacker test that requires space splitting.
Garret Rieger d5beb96e 2021-09-09T10:40:08 [repacker] add repacker isolation test on real font.
Qunxin Liu ca7b9dae 2021-09-20T14:42:51 [subset] subset MATH table
Garret Rieger c2cc566c 2021-09-22T14:15:55 [subset] Fix subset_offset_array adding unused space to serializer. ArrayOf.serialize_append allocates space for the new item, but ArrayOf.pop() does not recover the allocated space. So in the case where the revert path was entered the extra space added by serialize_append gets left in the serialization buffer. This moves the snapshot to before ArrayOf.serialize_append is called so that revert cleans up the buffer extend.
Qunxin Liu 8c5c8174 2021-09-12T20:16:30 [subset] fix find_duplicate_features We should check each feature against all other features with the same tag for duplicates.
Qunxin Liu 37379f8f 2021-09-02T11:54:37 [subset] fox for (Chain)ContextFormat3: subset lookupRecord skip copying a lookupRecord if lookup referenced in the lookupRecord is not retained after subset
Qunxin Liu 34e0b28f 2021-08-18T20:46:06 [subset] make glyph-names option match fonttools behavior Don't encode psNames that are contained in standard glyph names set
Garret Rieger 44802c8e 2021-08-12T11:11:51 [subset] use layout-features=* for layout subsetting tests w/ synthetic test fonts.
Behdad Esfahbod 58bfe407 2021-08-11T19:48:28 [util] Move hb-subset away from main-font-text
Khaled Hosny f1226988 2021-08-12T01:47:35 [test] Improve generate-expected-outputs.py diff output
Garret Rieger e39c3bde 2021-08-10T11:41:55 [subset] fix bug in parsing glyf flags. the bytes of the flag stream were being treated as signed integers instead of unsigned as specified in the spec.
Behdad Esfahbod f3acb977 2021-08-10T11:05:40 [test/shaping;util] Use ';' instead of ':' to separate test fields Accept that in --batch mode. Also in batch mode don't send the 0th arg. Related discussion: https://github.com/harfbuzz/harfbuzz/pull/3102