Page MenuHomePhabricator

Liberation Sans font-family don't work in SVG rendering for SVG files created with Adobe Illustrator
Closed, DuplicatePublic


The font family Liberation Sans is a free font, and mentioned in the compatible fonts list : But this font don't work and is badly rendered by Wikimedia Commons render system : see and for example.

Do you know where does this bug come from ?

Event Timeline

Niridya created this task.Mar 28 2018, 5:19 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptMar 28 2018, 5:19 PM

Here it does work without problems in the SVG rendering; the problem is only in the PNG thumbnail of the SVG image?

Yes, the SVG is working (on Chrome and Firefox) but if you look to the PNG render (the first one in the Commons page) you can see that the 4 different font-families I used are rendered in the same font family.

The render font families are on the left, right fonts are vectorized one (just to be sure you are looking the good side).

@Aklapper I found from where does this bug come from. The problem is Illustrator and he got also others problems when he saves files in SVG. To fix the bug I did this :

  • open the .ai (file format of Illustrator) in Inkscape (I didn't know it was possible but it works perfectly);
  • save the file in SVG with Inkscape.
Aklapper renamed this task from Liberation Sans font-family don't work in SVG rendering to Liberation Sans font-family don't work in SVG rendering for SVG files created with Adobe Illustrator.Apr 24 2018, 6:00 PM
Glrx added a subscriber: Glrx.EditedJul 18 2018, 9:00 PM

This is the same bug as T184369. AI is putting quotation marks around the font name, and librsvg gets confused by the marks.

Here's the style element from an early version of the file:

<style type="text/css">

So this should be closed as a duplicate.

By the way, setting the font family to Arial-BoldItalicMT is not the right method. It should be


Glrx added a comment.Jul 18 2018, 9:52 PM

Also same bug as T64987.

@Glrx: You can close tasks as duplicate via Edit Related Tasks...Close As Duplicate

@Glrx this you said about the


is set by default in Illustrator, and it is the subject of T25643.