bug-lilypond
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Issue 1434 in lilypond: SVG backend: xml:space="preserve" is needed


From: lilypond
Subject: Re: Issue 1434 in lilypond: SVG backend: xml:space="preserve" is needed for <text> and/or <tspan>
Date: Sun, 05 Dec 2010 18:06:38 +0000


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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]