Last modified: 2014-04-19 01:33:25 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 43640 - SVG to PNG: font rendering problem in Persian
SVG to PNG: font rendering problem in Persian
Status: NEW
Product: Wikimedia
Classification: Unclassified
SVG rendering (Other open bugs)
wmf-deployment
All All
: Low normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on: 43648
Blocks: rtl svg
  Show dependency treegraph
 
Reported: 2013-01-04 18:22 UTC by Huji
Modified: 2014-04-19 01:33 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
Comparison of SVG rendered on Wiki (top) and SVG itself (bottom) (14.60 KB, image/png)
2013-01-04 21:39 UTC, Huji
Details

Description Huji 2013-01-04 18:22:08 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
Comment 1 Amir E. Aharoni 2013-01-04 18:47:41 UTC
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?
Comment 2 Huji 2013-01-04 21:39:21 UTC
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.
Comment 3 Amir E. Aharoni 2013-01-04 21:45:55 UTC
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.
Comment 4 Huji 2013-01-05 01:02:47 UTC
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.
Comment 5 Bawolff (Brian Wolff) 2014-04-19 01:33:25 UTC
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.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links