Problems with text if font name contains an apostrophe

Bug #1459366 reported by RickB
10
This bug affects 2 people
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://www.dafont.com/jellyka-saint-andrews-queen.font

* 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

Revision history for this message
RickB (rick-777) wrote :
Revision history for this message
jazzynico (jazzynico) wrote :

Reproduced on Windows XP, Inkscape 0.91 and trunk rev. 14195.
Not reproduced with 0.48.5.

Changed in inkscape:
status: New → Triaged
status: Triaged → Confirmed
importance: Undecided → Medium
status: Confirmed → Triaged
tags: removed: xmleditor
Changed in inkscape:
milestone: none → 0.91.1
tags: added: regression
su_v (suv-lp)
Changed in inkscape:
milestone: 0.91.1 → 0.92
Revision history for this message
Bernd Prünster (jesusmccloud) wrote :

Confirmed on Arch Linux x64, Inkscape 0.91 r13725

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.