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:


Converted by Inkscape:

Examples:

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

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

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

SG9tZVBoYWJyaWNhdG9yCk5vIG1lc3NhZ2VzLiBObyBub3RpZmljYXRpb25zLgoKICAgIFNlYXJjaAoKQ3JlYXRlIFRhc2sKTWFuaXBoZXN0ClQxOTcyODEKRml4IGZhaWxpbmcgd2VicmVxdWVzdCBob3VycyAodXBsb2FkIGFuZCB0ZXh0IDIwMTgtMDYtMTQtMTEpCk9wZW4sIE5lZWRzIFRyaWFnZVB1YmxpYwoKICAgIEVkaXQgVGFzawogICAgRWRpdCBSZWxhdGVkIFRhc2tzLi4uCiAgICBFZGl0IFJlbGF0ZWQgT2JqZWN0cy4uLgogICAgUHJvdGVjdCBhcyBzZWN1cml0eSBpc3N1ZQoKICAgIE11dGUgTm90aWZpY2F0aW9ucwogICAgQXdhcmQgVG9rZW4KICAgIEZsYWcgRm9yIExhdGVyCgpFVzZSC3IERpc2NsYWltZXIgtyBDQy1CWS1TQSC3IEdQTApZb3VyIGJyb3dzZXIgdGltZXpvbmUgc2V0dGluZyBkaWZmZXJzIGZyb20gdGhlIHRpbWV6b25lIHNldHRpbmcgaW4geW91ciBwcm9maWxlLCBjbGljayB0byByZWNvbmNpbGUu

Restricted Application added a project: Security. · View Herald TranscriptJun 15 2018, 8:34 AM
JoKalliauer added a project: 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: 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