Last modified: 2012-02-21 11:12:22 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 3769 - Fonts are off in rasterized SVG images on wikimedia sites
Fonts are off in rasterized SVG images on wikimedia sites
Status: RESOLVED FIXED
Product: Wikimedia
Classification: Unclassified
SVG rendering (Other open bugs)
unspecified
PC Windows XP
: Normal normal with 5 votes (vote)
: ---
Assigned To: Nobody - You can work on this!
http://commons.wikimedia.org/wiki/Ima...
:
: 19182 (view as bug list)
Depends on:
Blocks: svg
  Show dependency treegraph
 
Reported: 2005-10-21 13:35 UTC by Ævar Arnfjörð Bjarmason
Modified: 2012-02-21 11:12 UTC (History)
11 users (show)

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


Attachments
The image in the URL component rendered on a local install with rsvg 2.12.7 (6.52 KB, image/png)
2005-10-21 13:36 UTC, Ævar Arnfjörð Bjarmason
Details

Description Ævar Arnfjörð Bjarmason 2005-10-21 13:35:46 UTC
Images like the one in the url component that are supposed to have the letter(s)
in them fit exactly to the image have those letters overflow the image, this is
probably a problem with the font(s) at Wikimedia sites as I've been been unable
to reproduce this with both rsvg 2.9.5 and 2.12.7 on my local install, rendering
attached.
Comment 1 Ævar Arnfjörð Bjarmason 2005-10-21 13:36:45 UTC
Created attachment 1012 [details]
The image in the URL component rendered on a local install with rsvg 2.12.7
Comment 2 Alexander Sigachov 2005-12-29 13:59:10 UTC
and we have problem with cyrillic letters in rasterized SVG.

This is SVG with latin labels
http://commons.wikimedia.org/wiki/Image:Rhetorical_question_mark.svg

Same figure with Russian translation:
http://ru.wikipedia.org/wiki/Image:Orbita.svg (black boxes)
Comment 3 Denis Jacquerye 2006-01-12 20:08:39 UTC
The font rasterizer should have a better default font, and should also be able
to do the Serif vs Sans serif difference between font:
ex: http://fr.wiktionary.org/wiki/Image:Wiki_logo.svg
The text "Wiktionnaire" should be Serif and "/wik.sjɔ.nɛr/" is missing two
characters.
Comment 4 Brion Vibber 2006-03-01 01:45:52 UTC
No difference after upgrading to 2.14.0.
Comment 5 Robert Shimmin 2006-09-20 16:46:09 UTC
See http://en.wikipedia.org/wiki/Image:Vanillin-ex-eugenol.svg

The subscript 3's are rendered huge.  This image renders correctly in Inkscape,
or if opened in Mozilla, but the Mediawiki rasterizer is mangling it.
Comment 6 Robert Shimmin 2006-09-20 22:06:41 UTC
(In reply to comment #5)
> See http://en.wikipedia.org/wiki/Image:Vanillin-ex-eugenol.svg
> 
> The subscript 3's are rendered huge.  This image renders correctly in Inkscape,
> or if opened in Mozilla, but the Mediawiki rasterizer is mangling it.

Diagnosis: font-size="75%" fails to be understood as 75% of the parent's size,
but instead appears to be taken as 75% of the canvas height!  I'll fix this
particular image by specifying the font-size in point terms, but the parser
still needs to be fixed.
Comment 7 Tim Starling 2007-04-18 22:26:09 UTC
The problems of missing letters and the lack of serif fonts appear to be fixed.
The inconsistency in font sizes between rsvg and Inkscape remains. If the
handling of font-size="75%" really is incorrect in rsvg, it needs to be reported
upstream.
Comment 9 Matthew Flaschen 2007-12-03 00:54:10 UTC
I learned (painfully) that the rasterizer does not properly handle spacing in fonts.  Specifically, it seems to treat multiple spaces as a single space in certain cases.  The only workaround is to separate the spaced text into separate elements, which is awkward.
Comment 10 Otourly 2008-06-15 16:59:03 UTC
In the same subject, there is a problem with the font "NSimSun" in this file: [http://commons.wikimedia.org/wiki/Image:Euro2008_venues_wu.svg] some Chinese characters had been changed from the file made with Inkscape 0.46. 

Comment 11 Nikola Smolenski 2009-06-13 22:04:52 UTC
*** Bug 19182 has been marked as a duplicate of this bug. ***
Comment 12 Nikola Smolenski 2009-06-13 22:07:58 UTC
To add another image where this is very pronounced, http://commons.wikimedia.org/wiki/Image:Planetary_transit_sr.svg

The image, if rendered at normal size is rendered perfectly: http://upload.wikimedia.org/wikipedia/commons/thumb/5/59/Planetary_transit_sr.svg/800px-Planetary_transit_sr.svg.png - actually the arrows are not rendered but this is a known rsvg bug.

However, if rendered at a reduced size, the text gets strange spaces at random places: http://upload.wikimedia.org/wikipedia/commons/thumb/5/59/Planetary_transit_sr.svg/300px-Planetary_transit_sr.svg.png - for example the text at bottom right that reads "Светлосна крива" becomes something like "Св ет  лосн а кри".

I don't think this is a rsvg bug b/c on my computer rsvg (2.18.2) renders the image in reduced size just fine, and I don't see how it could be a MediaWiki bug. My guess is that this is caused by bad fonts installed on the servers.

Also very interesting: image history thumbnails. http://upload.wikimedia.org/wikipedia/commons/thumb/archive/5/59/20080129224211!Planetary_transit_sr.svg/120px-Planetary_transit_sr.svg.png is mangled, http://upload.wikimedia.org/wikipedia/commons/thumb/5/59/Planetary_transit_sr.svg/120px-Planetary_transit_sr.svg.png is just fine.
Comment 13 Brion Vibber 2009-08-03 16:53:43 UTC
Assigning SVG bugs to Ariel -- need a cleanup pass to see what's fixed up by a librsvg upgrade, what can be resolved with fixes to our font configuration, what can be fixed on our end, and what still needs to be pushed upstream.
Comment 14 Ariel T. Glenn 2011-09-18 09:28:53 UTC
giving SVG bugs back to the pool.
Comment 15 Derk-Jan Hartman 2011-12-04 22:25:50 UTC
The rethorical question mark issue seems fixed. There are still many other issues with fonts, some exhibit in some of the files reported here, but these effects all seem to have individual reports.

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


Navigation
Links