resvg
resvg copied to clipboard
dominant-baseline support
https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/dominant-baseline
Yes, this is planned.
https://github.com/RazrFalcon/resvg/blob/master/docs/unsupported.md
would love this! I use dominant-baseline support to center labels in graph/plotting related svg files. as a workaround I think people could use the dx and dy css position attributes to manually offset text vertically.
@RazrFalcon I tried this out and it works great! I noticed that when used as an attribute it works, but doesn't appear to work through css style. Is that expected? (I'm using dominant-baseline:middle
)
Yes, my bad. Will fix.
Fixed.
Works!