Last modified: 2014-04-19 01:33:25 UTC
I have been informed that SVN font rasterization has a problem with Persian text. The way https://commons.wikimedia.org/wiki/File:Stuxnet-influence.svg is rendered into a PNG, makes its text look different (in size and shape) from the SVG itself: https://upload.wikimedia.org/wikipedia/commons/4/4d/Stuxnet-influence.svg
This is a bit strange. I looked at it in both Chrome and Firefox on Fedora, and the PNG was surprisingly *better* than SVG. Most notably, the last line in the legend box was shown properly inside the box in PNG, but it overlapped the box in SVG. Except that, however, I see that the Persian letters are rendered pretty much the same in both images. I may be missing something, however. Can you please post a PNG of how it is supposed to look?
Created attachment 11590 [details] Comparison of SVG rendered on Wiki (top) and SVG itself (bottom) Well, I'm confused. For me on Mac and Windows (Firefox, Chrome and Safari), it is the Wiki's version which is worse, with the last line of legends overlapping the box. I'm attaching a file which compares the two. It is not about which font is more beautiful (to be honest, I like the wiki's font better). It is about the layout being broken, compared to the original.
Maybe the Wikimedia server doesn't have the font that you are using. You can use one of the fonts that are listed at http://meta.wikimedia.org/wiki/SVG_fonts or ask to install your font; see Bug 13716 for an example. To be installed, the font must have a free license. It's also strongly recommended to ask to install a font that has an Ubuntu package.
Bug 43648 was created accordingly. Once that is fixed, you can close this one as WORKSFORME; I will let the user know to recreate the SVG file using one of the fonts installed through Bug 43648.
The fonts were already installed, as of at least June 2012, so prior to this bug being filed. The glyphs in the legend look quite a bit different viewing the svg in firefox vs our png - however I don't even know which one is correct as I don't speak farsi. However, the png thumb of the svg looks similar to [[File:Stuxnet-influence_chart.png]] as well as the text actually printed out on my computer, so I'm leaning towards our svg renderer being correct. The svg you link as an example specifically declares the font to be arial. Changing it to one of the titr (one of the farsiweb fonts) makes things look bolder, but as far as I can tell, does not change what the glyph looks like: https://test.wikipedia.org/wiki/File:Stuxnet-influence.svg ---- tl;dr: *The font is already installed and has been for a long time *Is the svg rendering still wrong? **If it is, could you be specific about what you expect the lettering to look like, for those of us that don't speak farsi.