resvg: Fonts don't work/html parsed incorrectly with `"`
I am testing with the latest https://github.com/RazrFalcon/resvg/releases/download/v0.32.0/viewsvg-win64.zip for evaluation before using this library in a project.
I am unable to get system fonts to load with this program. I have verified that the required font is installed to C:\Windows\Fonts
and the SVG contains no @font-face
which I know is not supported by resvg (https://github.com/RazrFalcon/resvg/issues/541). With the system font installed, the SVG renders correctly in chromium. With the system font installed, it renders in resvgviewer with the default font and not the specified font.
With the system font removed, both chromium and resvg use the default font as expected.
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 17 (5 by maintainers)
Commits related to this issue
- Fix double quotes parsing in `font-family`. Closes #619 — committed to transparencies/resvg by RazrFalcon a year ago
When it comes to “web standards”, there are no such thing as correct. Most apps do support this, so we have to as well.
As for the SVG itself, it’s very browser-oriented. If you care only about Chrome (aka 99%) then you will be fine. Batik and Inkscape fail to rasterize the effects on text. The only weird part here is that it relies on SVG 2 features, but still uses SVG 1 emulation of drop shadows, which are native in SVG 2.
I will add double quote support in the next release.