sammycage / plutosvg

Tiny SVG rendering library in C
MIT License
260 stars 18 forks source link

Minor - patterns in SVG fills #15

Closed ledow closed 1 month ago

ledow commented 1 month ago

It appears that plutosvg doesn't render patterns in fills, this may be intentional.

The attached SVG (CC0 from https://www.me.uk/cards/ ) 1B

Renders as a white card:

1B

Where it should render as chequered (e.g. from an Inkscape export:

1B

Not a critical issue and I understand if it's entirely out of scope of plutosvg.

sammycage commented 1 month ago

Thank you for your feedback! PlutoSVG doesn't currently support patterns in fills due to limitations with the OpenType SVG specifications. If pattern rendering is important for your use case, I would recommend trying LunaSVG, which offers broader SVG rendering capabilities.

https://github.com/sammycage/lunasvg