Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Texts disappeared while converting to PNG #3

Open
JohnTortugo opened this issue Feb 28, 2016 · 4 comments
Open

Texts disappeared while converting to PNG #3

JohnTortugo opened this issue Feb 28, 2016 · 4 comments

Comments

@JohnTortugo
Copy link

First of all, thanks for putting effort on this excellent lib. It really helped me a lot!

I'm trying to convert some SVG files to PNG however at some point during the conversion all texts in the images disappear. Do you have an idea of what could be the problem?

I've attached a sample SVG file where the problem happens.

test.svg.txt

@JohnTortugo
Copy link
Author

Even for this file the text does not appear in the PNG output:

/Mntone.SvgForXaml.DemoApp/Mntone.SvgForXaml.DemoApp.Shared/Assets/test1.svg

BTW, I'm using the lib on a UWP app.

@mntone
Copy link
Owner

mntone commented Feb 29, 2016

Its library does not implement both parsing tag text and rendering texts. Thus they don’t draw all texts.

The behavior is by design.

@JohnTortugo
Copy link
Author

Do you think this would be difficult to implement? I am not very familiar with C# but I need this feature and if it's not be very difficult I would like to spent some playing with it and contribute to your project with a patch.

Do you know any alternative lib that I could use to convert SVG to PNG on a UWP App?

@mntone
Copy link
Owner

mntone commented Mar 7, 2016

I think it’s difficult. Related implementation related to text (tspan, tref) is complex. Of course, rendering basic text is easy.

Do you know any alternative lib that I could use to convert SVG to PNG on a UWP App?

As far as I know, there is next alternative SVG library.

https://github.com/damyanp/SvgWin2D

However, it doesn't have SVG to PNG conversion feather.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants