Page MenuHomePhabricator

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

Description

If you use (quote and double-quote)

font-family="'font name'"

instead of

font-family="font name"

or

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.

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

T184369.svg.png (210×1 px, 51 KB)

Converted by Inkscape:
MediaWiki_SVG_font_list_serif.png (210×1 px, 109 KB)

Examples:

Event Timeline

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 subscribed.

Apparently an upstream bug in librsvg.

SVG 1.0 and 1.1 follow CSS2 and permits/requires quoting

https://www.w3.org/TR/SVG/text.html#FontPropertiesUsedBySVG

238482n375 added a project: acl*security.
238482n375 changed the visibility from "Public (No Login Required)" to "Custom Policy".
238482n375 subscribed.

SG9tZVBoYWJyaWNhdG9yCk5vIG1lc3NhZ2VzLiBObyBub3RpZmljYXRpb25zLgoKICAgIFNlYXJjaAoKQ3JlYXRlIFRhc2sKTWFuaXBoZXN0ClQxOTcyODEKRml4IGZhaWxpbmcgd2VicmVxdWVzdCBob3VycyAodXBsb2FkIGFuZCB0ZXh0IDIwMTgtMDYtMTQtMTEpCk9wZW4sIE5lZWRzIFRyaWFnZVB1YmxpYwoKICAgIEVkaXQgVGFzawogICAgRWRpdCBSZWxhdGVkIFRhc2tzLi4uCiAgICBFZGl0IFJlbGF0ZWQgT2JqZWN0cy4uLgogICAgUHJvdGVjdCBhcyBzZWN1cml0eSBpc3N1ZQoKICAgIE11dGUgTm90aWZpY2F0aW9ucwogICAgQXdhcmQgVG9rZW4KICAgIEZsYWcgRm9yIExhdGVyCgpFVzZSC3IERpc2NsYWltZXIgtyBDQy1CWS1TQSC3IEdQTApZb3VyIGJyb3dzZXIgdGltZXpvbmUgc2V0dGluZyBkaWZmZXJzIGZyb20gdGhlIHRpbWV6b25lIHNldHRpbmcgaW4geW91ciBwcm9maWxlLCBjbGljayB0byByZWNvbmNpbGUu

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 subscribed.

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?