Quoted font-family-names get destroyed (by Scour)

Bug #1514073 reported by Roul P.
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
Undecided
Patrick Storz
Scour
Fix Released
Undecided
Patrick Storz

Bug Description

This is a longe-time bug (I found no report). Font-family-names like "'MyriadPro-Regular'" get converted to "'MyriadPro-Regular'" with HTML-Entitys (primary fonts with whitespaces, because single quotation marks are recommended for this by the W3C) if you save as Optimzed SVG. Tested on Windows 7 x64 and Ubuntu latest version. Upstream as bug 1514075

=====
Inkscape 0.91 r13725
includes Scour 0.26+r220
https://bazaar.launchpad.net/~inkscape.dev/inkscape/RELEASE_0_91_BRANCH/view/13725/share/extensions/scour.py#L76

Roul P. (perhelion1)
tags: added: svgfonts
summary: - Font-family-names get destroyed (by Scour)
+ Quoted font-family-names get destroyed (by Scour)
Roul P. (perhelion1)
description: updated
Revision history for this message
su_v (suv-lp) wrote :

Please add information about OS/platform and Inkscape version to the bug description, and attach a test case (Inkscape SVG file).

tags: added: fonts
removed: svgfonts
Changed in inkscape:
status: New → Incomplete
su_v (suv-lp)
tags: added: exporting svg
Revision history for this message
Roul P. (perhelion1) wrote :

Hej suv, as described the OS/platform seems here unattached. Here a test-case attached (I mean the problem could be in the Scour Python module):

Revision history for this message
su_v (suv-lp) wrote :

"Tested on Windows 7 x64 and Ubuntu latest version" gives no clue whatsoever which Inkscape version was used (For example: different releases of Ubuntu include different versions of Inkscape which may include different versions of Scour).

Please add information about Inkscape to the bug description as requested.

Revision history for this message
su_v (suv-lp) wrote : Re: [Bug 1514073] [NEW] Quoted font-family-names get destroyed (by Scour)

Reproduced on OS X 10.7.5 with current trunk Inkscape 0.91+devel r14449
(includes Scour 0.26+r220)

Reduced test case (created with Inkscape, default new doc, default (new)
prefs) attached:
1) create regular text object
2) set font family to 'Times New Roman'
3) save as Inkscape SVG
4) save a copy as 'Optimized SVG'
(all options unchecked, pretty-printing set to 'None')

Revision history for this message
su_v (suv-lp) wrote :

So far, I did not find an SVG viewer which would misrender text in such a scoured SVG file though (Chromium 48.0.2556.0, Firefox 41.0.2, Batik 1.7.1, rsvg-view-3 (from librsvg 2.40.11), as well as Inkscape use the expected font to render the text on-canvas).

Changed in inkscape:
status: Incomplete → New
description: updated
Revision history for this message
Roul P. (perhelion1) wrote :

Okay, but that is no reason (error correction can handle this) to ignore this bug (I'm sure someone old viewer/editor can't handle this).
I made another example to show more aftereffects, for example fallback-fonts get prior. Also other optimzation scripts (and Scour himself) can't not handle this defect code optimal anymore.

Revision history for this message
jazzynico (jazzynico) wrote :

Also reproduced on Xunbuntu 15.10, with Inkscape 0.91 (scour 0.26) and the latest standalone Scour version (0.31).

Reported upstream (https://github.com/codedread/scour/issues/21).

Changed in scour:
status: New → Confirmed
Changed in inkscape:
status: New → Triaged
Revision history for this message
Patrick Storz (ede123) wrote :

Fixed in scour 0.35 [1]

See copy of this bug on GitHub for details
https://github.com/scour-project/scour/issues/95

[1] https://pypi.python.org/pypi/scour

Changed in inkscape:
status: Triaged → Fix Committed
Changed in scour:
status: Confirmed → Fix Released
Changed in inkscape:
assignee: nobody → Eduard Braun (eduard-braun2)
Changed in scour:
assignee: nobody → Eduard Braun (eduard-braun2)
Patrick Storz (ede123)
Changed in inkscape:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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