Comment #3 on issue 1434 by pnorcks: SVG backend: xml:space="preserve" is
needed for <text> and/or <tspan>
http://code.google.com/p/lilypond/issues/detail?id=1434
Okay, here's an example:
<svg xmlns="http://www.w3.org/2000/svg" width="400" height="50"
xml:space="preserve">
<rect x="0" y="0" width="100%" height="100%" style="fill:blue;" />
<!-- Dummy path that triggers bad behavior with librsvg -->
<path transform="scale(0.005, -0.005)" d="M0 0" />
<text x="50%" y="50%" fill="orange" font-size="30"
text-anchor="middle">LilyPond</text>
</svg>
The transform attribute value is not arbitrary, since the LilyPond SVG
output uses that value for scaling down font-glyph path data.
I tested in Eye of Gnome, Gimp, geeqie, and gqview, which all use librsvg.
Attachments:
test.png 12.9 KB
_______________________________________________
bug-lilypond mailing list
bug-lilypond@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-lilypond