Last modified: 2014-04-08 21:31:37 UTC
In the PNG conversions of this file: http://commons.wikimedia.org/wiki/File:Hummel_Prelude_Op_67_No_11.svg the text is not being rendered properly. Character spacing is too wide (but variable), and text position is placed lower than expected. The text displays properly in Firefox and Chrome viewing directly in the browser: http://upload.wikimedia.org/wikipedia/commons/d/d8/Hummel_Prelude_Op_67_No_11.svg Text in SVG files I uploaded yesterday and which were created in a similar manner did not have a PNG rendering problem, such as: http://commons.wikimedia.org/wiki/File:Beethoven_piano_sonata_14_mvmt_1_bar_1-4.svg http://commons.wikimedia.org/wiki/File:Beethoven_piano_sonata_14_mvmt_2_bar_1-8.svg http://commons.wikimedia.org/wiki/File:Beethoven_piano_sonata_14_mvmt_3_bar_1-3.svg
I can confirm this is rendering incorrectly; not obvious why. Text looks like it's done straightforwardly, doesn't have any manual positioning or other odd things. Could be a bug in rsvg or with the font...
Should check this once bug 31122 is fixed.
This problem still exists.
I've analyzed the file. It is an extremely high ratio of scaling and font size. ~900:1. The affected file has an scale of ~900. The other unaffected SVGs are nearly equal with the difference that the font-size is ~900. So you can simple fix this test: <svg xmlns="http://www.w3.org/2000/svg" viewBox="2000 -20000 30000 20000" width="750" height="600"> <text transform="translate(12296,-3469) scale(1,1)" font-size="900" style="font-family:Nimbus Roman No9 L">Prelude in B major</text> <text transform="translate(12296,-6000) scale(910,910)" font-size="1" style="font-family:Nimbus Roman No9 L">Prelude in B major</text </svg>
Created attachment 14884 [details] scaled & not scaled font
Created attachment 14885 [details] [[:File:Fonttest-Kerning.svg]] Old example of font-kerning from German SVG-help page. It shows the dependency between font transformation/scaling and size.