[instancer] add tests for gvar partial instancing

pull/4368/head
Qunxin Liu 2 years ago
parent 32cfa37e2e
commit 77b158c72d
  1. 1
      test/subset/data/Makefile.am
  2. 1
      test/subset/data/Makefile.sources
  3. BIN
      test/subset/data/expected/glyf_partial_instancing/Roboto-Variable.ABC.no-tables-with-item-variations.retain-all-codepoint.wght=200-300-500,wdth=80-90.ttf
  4. BIN
      test/subset/data/expected/glyf_partial_instancing/Roboto-Variable.ABC.no-tables-with-item-variations.retain-all-codepoint.wght=300-600,wdth=85.ttf
  5. BIN
      test/subset/data/expected/glyf_partial_instancing/Roboto-Variable.composite.no-tables-with-item-variations.retain-all-codepoint.wght=200-300-500,wdth=80-90.ttf
  6. BIN
      test/subset/data/expected/glyf_partial_instancing/Roboto-Variable.composite.no-tables-with-item-variations.retain-all-codepoint.wght=300-600,wdth=85.ttf
  7. 1
      test/subset/data/profiles/no-tables-with-item-variations.txt
  8. 13
      test/subset/data/tests/glyf_partial_instancing.tests
  9. 1
      test/subset/generate-expected-outputs.py
  10. 1
      test/subset/meson.build

@ -72,6 +72,7 @@ EXTRA_DIST += \
expected/collect_name_ids \
expected/instantiate_colrv1 \
expected/instantiate_cff2_update_metrics \
expected/glyf_partial_instancing \
fonts \
profiles \
$(NULL)

@ -63,6 +63,7 @@ TESTS = \
tests/collect_name_ids.tests \
tests/instantiate_colrv1.tests \
tests/instantiate_cff2_update_metrics.tests \
tests/glyf_partial_instancing.tests \
$(NULL)
# TODO: re-enable once colrv1 subsetting is stabilized.

@ -0,0 +1 @@
--drop-tables+=MVAR,HVAR,VVAR,GDEF,COLR,GPOS

@ -0,0 +1,13 @@
FONTS:
Roboto-Variable.ABC.ttf
Roboto-Variable.composite.ttf
PROFILES:
no-tables-with-item-variations.txt
SUBSETS:
*
INSTANCES:
wght=300:600,wdth=85
wght=200:300:500,wdth=80:90

@ -34,6 +34,7 @@ def generate_expected_output(input_file, unicodes, profile_flags, instance_flags
args = ["fonttools", "varLib.instancer",
"--no-overlap-flag",
"--no-recalc-timestamp",
"--no-optimize",
"--output=%s" % instance_path,
input_file]
args.extend(instance_flags)

@ -65,6 +65,7 @@ tests = [
'collect_name_ids',
'instantiate_colrv1',
'instantiate_cff2_update_metrics',
'glyf_partial_instancing',
]
repack_tests = [

Loading…
Cancel
Save