-
Notifications
You must be signed in to change notification settings - Fork 128
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
SVG rasterizer, png not as expected #425
Comments
I think here it might just be that the background color is different.... ill try it soon. |
eh changing the bg color didn't matter, it might also be the symbol id references it uses, that looks incomplete here, and the So that's the problem, |
The By a quick glance a the spec, symbol is basically a mini-embedded svg you can refer to time and time again with use to paste it in multiple times. But implementing this in the mess of ported C code prolly not easy. |
It also doesn't support It has extremely minimal css support so that might also prove to be a limitation but i don't think that'd be very important in this case (biggest effect would be using normal font instead of italic and bold). Each of these is doable to fix but a pain given that this is essentially C code. |
....you know one potentially easy answer here is to preprocess it. it'd be tricky to get the viewBox working right with that though. eh prolly not gonna work that easily. |
Thanks a lot Adam that you have analyzed it. I will check wheter I can pre process if as suggested by you. Thanks. |
I really do not have much knowledge about SVG. I write a D binding for Verovio (https://github.com/rism-digital/verovio) which is able to create Midi & SVG file for a given MusicXML file.
I attached the sample SVG file.
sample_svg.zip
In the webbrowser it is rendered like this:
When I use
svg.d
the PNG looks like this:I used this coding and the svg.d from master:
Is there an error on my side or is maybe s.th. missing in
svg.d
?The text was updated successfully, but these errors were encountered: