SVG icon indicating copy to clipboard operation
SVG copied to clipboard

SVG to PNG not preserving font

Open ezra-exposito opened this issue 7 months ago • 0 comments

Image

Image

`var svg = File.ReadAllText(svgDirectory + "test.svg");

var svgDocument = SvgDocument.FromSvg<SvgDocument>(svg);

using (var bitmap = svgDocument.Draw()) { bitmap.Save(svgDirectory + "test.png", ImageFormat.Png); }`

When I convert an SVG with embedded fonts and try to convert to PNG the font style is lost. You can see in svgviewer it renders fine with Falcon font but style is lost when converted to png. Is there anything I can do to preserve the font style?

Thanks!

ezra-exposito avatar Apr 15 '25 20:04 ezra-exposito