Files
harfbuzz/test/vector/data/tests/basic.tests
T
Behdad Esfahbod 00da68ef5c [svg] Share svgz normalization across raster and vector
Vector SVG extraction still treated SVG table documents as plain text,
so svgz payloads worked in raster but failed in hb-vector.

Move the gzip helpers into a new internal hb-zlib.hh header and add a
shared SVG blob normalization helper in svg.hh. Raster and vector now
both normalize SVG documents before doc-cache or rendering/subsetting
logic sees them, with the same 16 MiB uncompressed size limit.

Also link zlib into harfbuzz-vector when available and add a vector
regression that checks matching output for the existing plain and
compressed handwriting SVG fonts.

Tested:
- meson test -C build

Assisted-by: OpenAI Codex
2026-03-11 20:23:51 -03:00

18 lines
1.9 KiB
Plaintext

# font-file;options;unicodes;expected-file
../../../api/fonts/Roboto-Regular.abc.ttf;;U+0061,U+0062,U+0063;../expected/basic/default.svg
../../../api/fonts/Roboto-Regular.abc.ttf;--flat;U+0061,U+0062,U+0063;../expected/basic/flat.svg
../../../api/fonts/Roboto-Regular.abc.ttf;--font-size=upem;U+0061,U+0062,U+0063;../expected/basic/upem-default.svg
../../../api/fonts/Roboto-Regular.abc.ttf;--direction=ttb;U+0061,U+0062,U+0063;../expected/basic/ttb.svg
../../../api/fonts/Roboto-Regular.abc.ttf;;U+0061,U+000A,U+0062,U+0063;../expected/basic/multiline.svg
../../../api/fonts/Roboto-Regular.abc.ttf;--flat --precision=0;U+0061,U+0062,U+0063;../expected/basic/flat-precision-0.svg
../../../api/fonts/Roboto-Regular.abc.ttf;--flat --precision=4;U+0061,U+0062,U+0063;../expected/basic/flat-precision-4.svg
../../../api/fonts/SourceSansPro-Regular.abc.otf;;U+0061,U+0062,U+0063;../expected/basic/cff1.svg
../../../api/fonts/SourceSansPro-Regular.abc.otf;--flat;U+0061,U+0062,U+0063;../expected/basic/flat-cff1.svg
../../../api/fonts/Roboto-Variable.abc.ttf;--variations=wght=900;U+0061,U+0062,U+0063;../expected/basic/glyf-var-wght900.svg
../../../api/fonts/TestCFF2VF.otf;--variations=wght=900;U+0061,U+0062,U+0063;../expected/basic/cff2-var-wght900.svg
../../../api/fonts/AdobeVFPrototype.abc.otf;--variations=wght=900,CNTR=100;U+0061,U+0062,U+0063;../expected/basic/cff2-var-cntr.svg
../../../api/fonts/SourceSerifVariable-Roman-VVAR.abc.ttf;--direction=ttb --variations=wght=900;U+0061,U+0062,U+0063;../expected/basic/glyf-vvar-ttb-wght900.svg
../fonts/2db082c6c462d5056544e56e7ea13bf58c33a832.ttf;--logical;U+0646,U+0633,U+062A,U+0639,U+0644,U+06CC,U+0642;../expected/basic/iran-nastaliq-y-offsets.svg
../../../fuzzing/fonts/noto_handwriting-untouchedsvg.ttf;;U+270D;../expected/basic/handwriting-svg.svg
../../../fuzzing/fonts/noto_handwriting-untouchedsvgz.ttf;;U+270D;../expected/basic/handwriting-svg.svg