Page MenuHomePhabricator

font-family="'font name'" and style="font-family:'font name'" does not work in SVG rendering
Closed, DuplicatePublic


If you use (quote and double-quote)

font-family="'font name'"

instead of

font-family="font name"


font-family='font name'

Wiki-Parser don't notice the correct font.
By default Inkscape adds ' ' if the font name has a space like in "Liberation Serif" or "DejaVu Sans" like style="font-family:'Bitstream Charter'"
Scour changes it to: font-family="'Bitstream Charter'" which doesn't help.

T184369.svg (filelink)
Rendered by Wiki-Parser:

Converted by Inkscape:


Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJan 7 2018, 2:55 PM
JoKalliauer updated the task description. (Show Details)Jan 7 2018, 3:20 PM
zhuyifei1999 renamed this task from font-family="'font name'" and style="font-family:'font name'" does not work to font-family="'font name'" and style="font-family:'font name'" does not work in SVG rendering.Jan 14 2018, 6:56 PM
zhuyifei1999 edited projects, added Thumbor; removed MediaWiki-Parser.
zhuyifei1999 added a subscriber: zhuyifei1999.
Glrx added a subscriber: Glrx.Jun 12 2018, 7:10 PM
Glrx added a comment.Jun 12 2018, 8:01 PM

Apparently an upstream bug in librsvg.

SVG 1.0 and 1.1 follow CSS2 and permits/requires quoting

238482n375 set Security to Software security bug.Jun 15 2018, 8:05 AM
238482n375 added a project: acl*security.
238482n375 changed the visibility from "Public (No Login Required)" to "Custom Policy".
238482n375 added a subscriber: 238482n375.


Restricted Application added a project: acl*security. · View Herald TranscriptJun 15 2018, 8:34 AM
JoKalliauer added a project: acl*security.

@Herald Why is it a Security bug? I think @238482n375 is spam?

MaxSem changed the visibility from "Custom Policy" to "Public (No Login Required)".Jun 15 2018, 8:38 AM
MaxSem removed a project: acl*security.
MaxSem added a subscriber: MaxSem.

Herald is an automated process that has a rule that every not publicly visible ticket must be in Security.

This seems to be a Duplicate of T64987 as @Glrx linked above?

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

Yes, close this as a dup of T64987.

Niridya removed a subscriber: Niridya.Jul 18 2018, 11:04 PM