Problems with text if font name contains an apostrophe
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Triaged
|
Medium
|
Unassigned |
Bug Description
If a font is used that has a name containing an apostrophe, Inkscape attempts to serialise the XML with the apostrophe escaped using a backslash. However, when text attributes are changed, this goes wrong and the font name is then incorrectly parsed. Therefore the text incorrectly appears in the default font instead of the chosen font.
Steps to reproduce:
* Get a font that includes an apostrophe in its name. I used "Jekylla St Andrew's Queen" http://
* Install the font so you can use it in Inkscape (how to do this differs depending on OS)
* Edit an SVG that has some text in the font (see the attached sample).
* Select the text
* Change a property, e.g. attempt to alter the stroke paint.
At this point, the text changes to have the default font instead of the chosen font. If you inspect the XML or save the file and look at its source code, the apostrophe is not now escaped correctly so the SVG is no longer well-formed XML. The single-quote marks and the apostrophe between them are now muddled.
--
Inkscape: 0.91 r13725
OS: Ubuntu 15.04 vivid
Changed in inkscape: | |
milestone: | 0.91.1 → 0.92 |
Reproduced on Windows XP, Inkscape 0.91 and trunk rev. 14195.
Not reproduced with 0.48.5.