Skip to content

SVG to PNG not preserving font #1179

Open
@ezra-exposito

Description

@ezra-exposito

Image

Image

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

var svgDocument = SvgDocument.FromSvg(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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions