mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-21 15:01:01 +01:00
The raster SVG path treated hb_ot_color_glyph_reference_svg() blobs as plain XML, even though SVG table documents may legally be gzip encoded. That caused hb-raster to reject fonts that store compressed SVG documents. Detect gzip payloads in the raster SVG renderer, reject documents whose advertised uncompressed size exceeds HB_SVG_MAX_DOCUMENT_SIZE, and inflate the rest through zlib while keeping the same size cap enforced during decompression. Plain SVG documents are also bounded by the same 16 MiB limit. Add a raster API regression that renders the existing plain and compressed noto_handwriting SVG fixtures and verifies identical output. Testing: - meson test -C build Assisted-by: OpenAI Codex