Last modified: 2012-10-25 10:00:33 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T36792, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 34792 - rsvg: SVG Text font-size rendered incorrectly
rsvg: SVG Text font-size rendered incorrectly
Product: Wikimedia
Classification: Unclassified
SVG rendering (Other open bugs)
All All
: Low normal (vote)
: ---
Assigned To: Nobody - You can work on this!
: ops, upstream
Depends on: 36623
Blocks: svg
  Show dependency treegraph
Reported: 2012-02-29 11:26 UTC by jonathan chetwynd
Modified: 2012-10-25 10:00 UTC (History)
5 users (show)

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


Description jonathan chetwynd 2012-02-29 11:26:38 UTC
[[File:Endosymbiosis.svg|Endosymbiosis and development of eukaryotic cells]]

Opera12, Safari5.1, Firefox10 each render text as desired
however wikipedia png version has miniscule font-size

possibly related bug: 17187
Comment 1 jonathan chetwynd 2012-02-29 11:29:13 UTC
marking as regression,

cannot imagine this would not have been picked up in the past?
Comment 2 jonathan chetwynd 2012-02-29 11:32:14 UTC
this bug was 'automagically' moved to SVG rendering, but SVG rendering is explicitly not the issue.
moved back to images, as is PNG issue
Comment 3 Bawolff (Brian Wolff) 2012-02-29 15:08:14 UTC
(In reply to comment #2)
> this bug was 'automagically' moved to SVG rendering, but SVG rendering is
> explicitly not the issue.
> moved back to images, as is PNG issue

Moving back to SVG rendering. SVG rendering is for issues turning SVG images into PNG's, which is what you're reporting (Its separate from normal image issues, because its not handled by MediaWiki, but by a program called rsvg).

Its unclear if code-update-regression keyword is appropriate, since that's more for MediaWiki regressions, where svg->png conversion is handled by a third party program (Note, as far as I am aware, rsvg was last updated on jan 24).
Comment 4 Antoine "hashar" Musso (WMF) 2012-02-29 17:14:38 UTC
I don't have the issue with rsvg-view version 2.34.1
Comment 5 Mark A. Hershberger 2012-02-29 17:38:59 UTC
(In reply to comment #1)
> marking as regression,
> cannot imagine this would not have been picked up in the past?

If this is regression, then wouldn't action=purge change the font rendering on existing SVG images?  I tried some, but they didn't render differently.  Trying to re-upload some others.
Comment 6 Saibo 2012-02-29 18:11:58 UTC
why should this bug be a regression? was the rendering of this file correct in the past? Probably not since it was uploaded 2012-02-29. It is well known that the rsvg renders different from browsers (like Firefox, ...). 

A help may be to check before upload. It also can give you hints what is wrong with your file. I have tried with your file: it renders similar to FF's rendering and reports no errors.

A check with gThumb on my PC shows the exact rendering like Wikimedia Commons (I observed this in the past - it probably also uses rsvg).

Also if I open the svg with inkscape it shows small fonts (although a bit different rendering). 

I had checked with - it reports an invalid svg. 

So, all in all, I doubt that is a "bug" which is not known. A first step is to supply valid SVG code. ;-) 
linearGradient id="chloroplast_green" x="0"   should be:
linearGradient id="chloroplast_green" x1="0"

I guess the font sizing is not working properly since you define the sizes in "em" instead of pixels but I cannot find a definition how large one "em" should be. All other measurements seem to be defined in pixels. That doesn't look healthy.
Comment 7 Antoine "hashar" Musso (WMF) 2012-02-29 19:46:40 UTC
I forgot to remove the code-update-regression keyword. 

This is indeed not a regression since it is a bug in the SVG rasterizer we are using (librsvg from the Gnome project). So the bug is really an upstream issue which have been fixed, and now we need to deploy a new version of RSVG.

So that is an issue for the operation team.
Comment 8 Antoine "hashar" Musso (WMF) 2012-10-25 10:00:33 UTC
Wikimedia imagescalers have been upgraded to Precise which brings librsvg2 to 2.36. The test file now correctly render (although previously generated thumbs need to be purged).

Example as of today:

Correct rendering:

Incorrect rendering (cached, need to be purged):

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