Open jkwchui opened 1 week ago
Duplicate of https://github.com/typst/typst/issues/1939
I don't think this is a duplicate. #1939 is about general rendering and changing colors in SVG, and involves inventing an API within Typst; it's a feature request. This is a meeting a specification of a format that Typst (intends to) support (hence a bug-fix), and could be as simple as pre-processing the SVG prior to passing into usvg
with the text-color substituted into currentColor
.
I don't think this is a duplicate. #1939 is about general rendering and changing colors in SVG, and involves inventing an API within Typst; it's a feature request. This is a meeting a specification of a format that Typst (intends to) support (hence a bug-fix), and could be as simple as pre-processing the SVG prior to passing into
usvg
with the text-color substituted intocurrentColor
.
See the discussion in the two last replies.
That being said, maybe @LaurenzV could chime in.
Yes, this is a bit different.
This is blocked by https://github.com/RazrFalcon/resvg/issues/768, though.
@jkwchui Do you happen to know any fonts that use that feature, so I can try it? I haven't been able to find one...
I can send you one; let me try to find your email.
All good, I've managed to make one myself now, but thanks! 😄
Description
This is for the dev version 0.11.1, which has OpenType-SVG support.
The SVG glyphs can contain fill or strokes with
currentColor
(spec). These should receivecolor
attributes from Typst markup; instead, it currently stays black and all the colors inside the SVG is impossible to change.Reproduction URL
No response
Operating system
macOS
Typst version