Hash :
efcb7d3d
Author :
Date :
2025-04-11T23:34:06
[subset] close unicodes over bidi mirror variants during subsetting. Fixes #5281. Does the closure by default, but I've introduced a new flag and option to disable this behaviour since some users may want to get the minimal set if they know they don't need the mirrored variants.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134
tests = [
'basics',
'bidi',
'cmap',
'cmap14',
'preprocess',
'full-font',
'cff-full-font',
'japanese',
'cff-japanese',
'cff.notoserifmyanmar',
'glyf_bug_3131',
'layout',
'layout.gpos',
'layout.gpos2',
'layout.gpos3',
'layout.gpos4',
'layout.gpos5',
'layout.gpos6',
'layout.gpos8',
'layout.gpos8.amiri',
'layout.gpos9',
'layout.gsub3',
'layout.gsub5',
'layout.gsub5_format2',
'layout.gsub6',
'layout.gsub8',
'layout.gdef',
'layout.gdef.glyphset',
'layout.khmer',
'layout.context',
'layout.context_format2',
'layout.gdef-varstore',
'layout.gdef-attachlist',
'layout.notonastaliqurdu',
'layout.tinos',
'layout.duplicate_features',
'layout.unsorted_featurelist',
'layout.drop_feature',
'no_layout_closure',
'sbix',
'colr',
'colr_glyphs',
'math',
'math_coverage_offset',
'subset_base',
# TODO: re-enable once colrv1 subsetting is stabilized.
# 'colrv1.notoemoji',
'colrv1',
'colrv1_subset_varstore',
'colr_with_components',
'cbdt',
'variable',
'glyph_names',
'glyph_map',
'post',
'32bit_var_store',
'pin_all_at_default',
'instantiate_base',
'instantiate_colrv1',
'instantiate_glyf',
'instantiate_cff2',
'full_instance',
'instance_feature_variations',
'instance_no_double_free',
'mvar_full_instance',
'instance_comp_glyph_empty_child',
'post_apply_mvar_delta',
'apply_cvar_delta',
'collect_name_ids',
'instantiate_cff2_update_metrics',
'layout.empty_ligature_offset',
'glyf_partial_instancing',
'mvar_partial_instance',
'update_def_wght',
'feature_variations_partial_instance',
'gdef_partial_instance',
'value_format_partial_instance',
'feature_variation_instance_collect_lookups',
'sync_vmetrics',
'empty_region_vardata',
'colrv1_partial_instance',
'instantiate_gvar_padding',
]
if get_option('experimental_api')
tests += [
'iftb_requirements',
]
endif
repack_tests = [
'basic',
'prioritization',
'table_duplication',
'isolation',
'advanced_prioritization',
'space_splitting',
]
run_test = find_program('run-tests.py')
foreach t : tests
fname = '@0@.tests'.format(t)
test(t, run_test,
args: [
hb_subset,
meson.current_source_dir() / 'data' / 'tests' / fname,
],
# as the tests are ran concurrently let's raise acceptable time here
# ideally better to break and let meson handles them in parallel
timeout: 500,
workdir: meson.current_build_dir() / '..' / '..',
protocol: 'tap',
suite: 'subset',
)
endforeach
run_repack_test = find_program('run-repack-tests.py')
foreach t : repack_tests
fname = '@0@.tests'.format(t)
test(t, run_repack_test,
args: [
hb_subset,
meson.current_source_dir() / 'data' / 'repack_tests' / fname,
],
workdir: meson.current_build_dir() / '..' / '..',
protocol: 'tap',
suite: ['subset', 'repack'],
)
endforeach