Files
harfbuzz/test/vector/data/expected/varc/conditional-default.svg
T
Behdad Esfahbod 7c54a401c0 [vector-draw] Add foreground/background color API
Add hb_vector_draw_set_{foreground,background}() and getters.

SVG: foreground wraps body in <g fill="rgb(...)">; background
emits a <rect> covering the viewBox before content.

PDF: foreground sets fill color via rg operator before glyph
content; background emits a filled rect at the start of the
content stream.

Default: foreground opaque black, background transparent.

Wire both into the hb-vector CLI util alongside the paint
equivalents.  Remove the old util-side emit_background_rect.

Regenerated vector test expected outputs.

Assisted-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-16 19:13:33 -06:00

10 lines
812 B
XML

<svg xmlns="http://www.w3.org/2000/svg" viewBox="-16 -816 952 1032" width="952" height="1032">
<defs>
<path id="p1" d="M5494.89,18183.38Q12239.27,19519.44 17299.55,21885.18Q22359.83,24250.92 25736.19,27650.73Q29112.54,31050.55 30809.22,35486.54Q32505.91,39922.52 32505.91,45379.34L32505.91,47744L5120,47744L5120,43264L29684.74,43264L27291.89,44032Q27259.9,39999.75 25797.58,36572.43Q24335.26,33145.12 21419.72,30393.42Q18504.18,27641.72 14090.57,25584.03Q9676.95,23526.34 3761.91,22206.24L5494.89,18183.38ZM47945.03,-5982.69L47945.03,11904L47945.03,15104L12544,15104L12544,10624L45576.94,10624L43180.36,11648L43180.36,-5982.69L47945.03,-5982.69Z"/>
</defs>
<rect x="-16" y="-816" width="952" height="1032" fill="rgb(255,255,255)"/>
<use href="#p1" transform="translate(0,0) scale(0.015625,-0.015625)"/>
</svg>