aboutsummaryrefslogtreecommitdiff
path: root/test/subset
diff options
context:
space:
mode:
Diffstat (limited to 'test/subset')
-rw-r--r--test/subset/data/Makefile.am1
-rw-r--r--test/subset/data/Makefile.sources1
-rw-r--r--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.ttfbin0 -> 8728 bytes
-rw-r--r--test/subset/data/expected/glyf_partial_instancing/Roboto-Variable.ABC.no-tables-with-item-variations.retain-all-codepoint.wght=300-600,wdth=85.ttfbin0 -> 7612 bytes
-rw-r--r--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.ttfbin0 -> 7592 bytes
-rw-r--r--test/subset/data/expected/glyf_partial_instancing/Roboto-Variable.composite.no-tables-with-item-variations.retain-all-codepoint.wght=300-600,wdth=85.ttfbin0 -> 6956 bytes
-rw-r--r--test/subset/data/expected/glyph_map/Roboto-Regular.glyph_map_roboto_retain_gids.41,43,61,66,69.ttfbin7936 -> 0 bytes
-rw-r--r--test/subset/data/expected/mvar_partial_instance/NotoSans-VF.abc.no-tables-with-item-variations.retain-all-codepoint.wght=200-600,wdth=80-90,CTGR=20-60.ttfbin0 -> 4340 bytes
-rw-r--r--test/subset/data/expected/mvar_partial_instance/NotoSans-VF.abc.no-tables-with-item-variations.retain-all-codepoint.wght=300-600.ttfbin0 -> 6848 bytes
-rw-r--r--test/subset/data/expected/mvar_partial_instance/NotoSans-VF.abc.no-tables-with-item-variations.retain-all-codepoint.wght=500-800.ttfbin0 -> 7328 bytes
-rw-r--r--test/subset/data/expected/update_def_wght/SourceSerifVariable-Roman.no-tables-with-item-variations.retain-all-codepoint.wght=300-600.ttfbin0 -> 305092 bytes
-rw-r--r--test/subset/data/expected/update_def_wght/SourceSerifVariable-Roman.no-tables-with-item-variations.retain-all-codepoint.wght=500-800.ttfbin0 -> 250164 bytes
-rw-r--r--test/subset/data/profiles/glyph_map_roboto_retain_gids.txt4
-rw-r--r--test/subset/data/profiles/no-tables-with-item-variations.txt1
-rw-r--r--test/subset/data/tests/glyf_partial_instancing.tests13
-rw-r--r--test/subset/data/tests/glyph_map.tests1
-rw-r--r--test/subset/data/tests/mvar_partial_instance.tests13
-rw-r--r--test/subset/data/tests/update_def_wght.tests12
-rwxr-xr-xtest/subset/generate-expected-outputs.py1
-rw-r--r--test/subset/meson.build9
20 files changed, 51 insertions, 5 deletions
diff --git a/test/subset/data/Makefile.am b/test/subset/data/Makefile.am
index 980bddb07..9a7d08ce0 100644
--- a/test/subset/data/Makefile.am
+++ b/test/subset/data/Makefile.am
@@ -56,6 +56,7 @@ EXTRA_DIST += \
expected/cbdt \
expected/variable \
expected/glyph_names \
+ expected/glyph_map \
expected/math \
expected/math_coverage_offset \
expected/post \
diff --git a/test/subset/data/Makefile.sources b/test/subset/data/Makefile.sources
index 919ec7391..398f2b82a 100644
--- a/test/subset/data/Makefile.sources
+++ b/test/subset/data/Makefile.sources
@@ -47,6 +47,7 @@ TESTS = \
tests/sbix.tests \
tests/variable.tests \
tests/glyph_names.tests \
+ tests/glyph_map.tests \
tests/math.tests \
tests/math_coverage_offset.tests \
tests/post.tests \
diff --git a/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 b/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
new file mode 100644
index 000000000..3dbbb9106
--- /dev/null
+++ b/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
Binary files differ
diff --git a/test/subset/data/expected/glyf_partial_instancing/Roboto-Variable.ABC.no-tables-with-item-variations.retain-all-codepoint.wght=300-600,wdth=85.ttf b/test/subset/data/expected/glyf_partial_instancing/Roboto-Variable.ABC.no-tables-with-item-variations.retain-all-codepoint.wght=300-600,wdth=85.ttf
new file mode 100644
index 000000000..00dc29de3
--- /dev/null
+++ b/test/subset/data/expected/glyf_partial_instancing/Roboto-Variable.ABC.no-tables-with-item-variations.retain-all-codepoint.wght=300-600,wdth=85.ttf
Binary files differ
diff --git a/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 b/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
new file mode 100644
index 000000000..e8a85f463
--- /dev/null
+++ b/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
Binary files differ
diff --git a/test/subset/data/expected/glyf_partial_instancing/Roboto-Variable.composite.no-tables-with-item-variations.retain-all-codepoint.wght=300-600,wdth=85.ttf b/test/subset/data/expected/glyf_partial_instancing/Roboto-Variable.composite.no-tables-with-item-variations.retain-all-codepoint.wght=300-600,wdth=85.ttf
new file mode 100644
index 000000000..4fc562139
--- /dev/null
+++ b/test/subset/data/expected/glyf_partial_instancing/Roboto-Variable.composite.no-tables-with-item-variations.retain-all-codepoint.wght=300-600,wdth=85.ttf
Binary files differ
diff --git a/test/subset/data/expected/glyph_map/Roboto-Regular.glyph_map_roboto_retain_gids.41,43,61,66,69.ttf b/test/subset/data/expected/glyph_map/Roboto-Regular.glyph_map_roboto_retain_gids.41,43,61,66,69.ttf
deleted file mode 100644
index f63599984..000000000
--- a/test/subset/data/expected/glyph_map/Roboto-Regular.glyph_map_roboto_retain_gids.41,43,61,66,69.ttf
+++ /dev/null
Binary files differ
diff --git a/test/subset/data/expected/mvar_partial_instance/NotoSans-VF.abc.no-tables-with-item-variations.retain-all-codepoint.wght=200-600,wdth=80-90,CTGR=20-60.ttf b/test/subset/data/expected/mvar_partial_instance/NotoSans-VF.abc.no-tables-with-item-variations.retain-all-codepoint.wght=200-600,wdth=80-90,CTGR=20-60.ttf
new file mode 100644
index 000000000..78f0d69d4
--- /dev/null
+++ b/test/subset/data/expected/mvar_partial_instance/NotoSans-VF.abc.no-tables-with-item-variations.retain-all-codepoint.wght=200-600,wdth=80-90,CTGR=20-60.ttf
Binary files differ
diff --git a/test/subset/data/expected/mvar_partial_instance/NotoSans-VF.abc.no-tables-with-item-variations.retain-all-codepoint.wght=300-600.ttf b/test/subset/data/expected/mvar_partial_instance/NotoSans-VF.abc.no-tables-with-item-variations.retain-all-codepoint.wght=300-600.ttf
new file mode 100644
index 000000000..8c5e3df5d
--- /dev/null
+++ b/test/subset/data/expected/mvar_partial_instance/NotoSans-VF.abc.no-tables-with-item-variations.retain-all-codepoint.wght=300-600.ttf
Binary files differ
diff --git a/test/subset/data/expected/mvar_partial_instance/NotoSans-VF.abc.no-tables-with-item-variations.retain-all-codepoint.wght=500-800.ttf b/test/subset/data/expected/mvar_partial_instance/NotoSans-VF.abc.no-tables-with-item-variations.retain-all-codepoint.wght=500-800.ttf
new file mode 100644
index 000000000..fc18d5762
--- /dev/null
+++ b/test/subset/data/expected/mvar_partial_instance/NotoSans-VF.abc.no-tables-with-item-variations.retain-all-codepoint.wght=500-800.ttf
Binary files differ
diff --git a/test/subset/data/expected/update_def_wght/SourceSerifVariable-Roman.no-tables-with-item-variations.retain-all-codepoint.wght=300-600.ttf b/test/subset/data/expected/update_def_wght/SourceSerifVariable-Roman.no-tables-with-item-variations.retain-all-codepoint.wght=300-600.ttf
new file mode 100644
index 000000000..2c8f3e709
--- /dev/null
+++ b/test/subset/data/expected/update_def_wght/SourceSerifVariable-Roman.no-tables-with-item-variations.retain-all-codepoint.wght=300-600.ttf
Binary files differ
diff --git a/test/subset/data/expected/update_def_wght/SourceSerifVariable-Roman.no-tables-with-item-variations.retain-all-codepoint.wght=500-800.ttf b/test/subset/data/expected/update_def_wght/SourceSerifVariable-Roman.no-tables-with-item-variations.retain-all-codepoint.wght=500-800.ttf
new file mode 100644
index 000000000..f50af5275
--- /dev/null
+++ b/test/subset/data/expected/update_def_wght/SourceSerifVariable-Roman.no-tables-with-item-variations.retain-all-codepoint.wght=500-800.ttf
Binary files differ
diff --git a/test/subset/data/profiles/glyph_map_roboto_retain_gids.txt b/test/subset/data/profiles/glyph_map_roboto_retain_gids.txt
deleted file mode 100644
index 77a513cbb..000000000
--- a/test/subset/data/profiles/glyph_map_roboto_retain_gids.txt
+++ /dev/null
@@ -1,4 +0,0 @@
---gid-map=37:37,39:39,69:69,74:74,77:77,444:444,446:446,561:561,563:563
---gids=444,446,561,563
---layout-features+=c2sc
---retain-gids
diff --git a/test/subset/data/profiles/no-tables-with-item-variations.txt b/test/subset/data/profiles/no-tables-with-item-variations.txt
new file mode 100644
index 000000000..d61fb717c
--- /dev/null
+++ b/test/subset/data/profiles/no-tables-with-item-variations.txt
@@ -0,0 +1 @@
+--drop-tables+=COLR
diff --git a/test/subset/data/tests/glyf_partial_instancing.tests b/test/subset/data/tests/glyf_partial_instancing.tests
new file mode 100644
index 000000000..c0cb12967
--- /dev/null
+++ b/test/subset/data/tests/glyf_partial_instancing.tests
@@ -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
diff --git a/test/subset/data/tests/glyph_map.tests b/test/subset/data/tests/glyph_map.tests
index d222aceee..f2a3d17f4 100644
--- a/test/subset/data/tests/glyph_map.tests
+++ b/test/subset/data/tests/glyph_map.tests
@@ -3,7 +3,6 @@ Roboto-Regular.ttf
PROFILES:
glyph_map_roboto.txt
-glyph_map_roboto_retain_gids.txt
SUBSETS:
ACafi
diff --git a/test/subset/data/tests/mvar_partial_instance.tests b/test/subset/data/tests/mvar_partial_instance.tests
new file mode 100644
index 000000000..edf9296de
--- /dev/null
+++ b/test/subset/data/tests/mvar_partial_instance.tests
@@ -0,0 +1,13 @@
+FONTS:
+NotoSans-VF.abc.ttf
+
+PROFILES:
+no-tables-with-item-variations.txt
+
+SUBSETS:
+*
+
+INSTANCES:
+wght=300:600
+wght=500:800
+wght=200:600,wdth=80:90,CTGR=20:60
diff --git a/test/subset/data/tests/update_def_wght.tests b/test/subset/data/tests/update_def_wght.tests
new file mode 100644
index 000000000..9ff5fce48
--- /dev/null
+++ b/test/subset/data/tests/update_def_wght.tests
@@ -0,0 +1,12 @@
+FONTS:
+SourceSerifVariable-Roman.ttf
+
+PROFILES:
+no-tables-with-item-variations.txt
+
+SUBSETS:
+*
+
+INSTANCES:
+wght=300:600
+wght=500:800
diff --git a/test/subset/generate-expected-outputs.py b/test/subset/generate-expected-outputs.py
index 5f21f80c4..4e375627f 100755
--- a/test/subset/generate-expected-outputs.py
+++ b/test/subset/generate-expected-outputs.py
@@ -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)
diff --git a/test/subset/meson.build b/test/subset/meson.build
index 45cd70ed0..827528a51 100644
--- a/test/subset/meson.build
+++ b/test/subset/meson.build
@@ -50,6 +50,7 @@ tests = [
'cbdt',
'variable',
'glyph_names',
+ 'glyph_map',
'post',
'32bit_var_store',
'pin_all_at_default',
@@ -67,6 +68,14 @@ tests = [
'instantiate_cff2_update_metrics',
]
+if get_option('experimental_api')
+ tests += [
+ 'glyf_partial_instancing',
+ 'mvar_partial_instance',
+ 'update_def_wght',
+ ]
+endif
+
repack_tests = [
'basic',
'prioritization',