mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-19 05:51:05 +01:00
Vector reset omitted draw colors, paint background, SVG id prefixes, and custom palette overrides. Restore these defaults while preserving configuration across clear. The PDF draw context also kept its opacity resource dictionary and counter after clear, including automatic clearing after render. Clear both with the accumulated output so later documents do not carry resources from earlier renders. Add regressions for SVG/PDF reset, configuration preservation, custom palette overrides, and fresh-context PDF equivalence after explicit clear, reset, and repeated rendering. All three regression groups fail against the original implementation. Tested with meson test -C build: 288 passed, 1 skipped, 0 failed. The vector suite and the issue reproducer pass. The regression also compiles and runs as C99 with -Wall -Wextra -Werror. Fixes: https://github.com/harfbuzz/harfbuzz/issues/6342 Assisted-by: OpenAI Codex
42 lines
848 B
Meson
42 lines
848 B
Meson
if get_option('vector').disabled()
|
|
subdir_done()
|
|
endif
|
|
|
|
run_test = find_program('run-tests.py')
|
|
|
|
test_vector_budget = executable('test-vector-budget', 'test-vector-budget.c',
|
|
dependencies: [libharfbuzz_vector_dep],
|
|
)
|
|
|
|
test('budget', test_vector_budget,
|
|
args: [meson.project_source_root() / 'test' / 'api' / 'fonts' / 'glyphs.ttf'],
|
|
suite: 'vector',
|
|
)
|
|
|
|
test_vector_reset = executable('test-vector-reset', 'test-vector-reset.c',
|
|
dependencies: [libharfbuzz_vector_dep],
|
|
)
|
|
|
|
test('reset', test_vector_reset,
|
|
suite: 'vector',
|
|
)
|
|
|
|
tests = [
|
|
'basic',
|
|
'varc',
|
|
]
|
|
|
|
foreach t : tests
|
|
fname = '@0@.tests'.format(t)
|
|
|
|
test(t, run_test,
|
|
args: [
|
|
hb_vector,
|
|
meson.current_source_dir() / 'data' / 'tests' / fname,
|
|
],
|
|
workdir: meson.current_build_dir() / '..' / '..',
|
|
protocol: 'tap',
|
|
suite: 'vector',
|
|
)
|
|
endforeach
|