Italic styling upon font with no italic variant results in wrong family specification, rendering issues

Bug #1004149 reported by Jon
This bug report is a duplicate of:  Bug #200899: Font style ignored in eps/pdf output. Edit Remove
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
New
Undecided
Unassigned

Bug Description

Create a text object in Inkscape (click rather than drag) and select a font that does +not+ have an italic variant. In my case, I'm using a TT font called "American Typewriter" (version 6.1d5e2, I think it came with OS X). Write a line of text, select a portion, and italicise this portion. This writes the <tspan> incorrectly - the '-inkscape-font-specification' becomes "American Typewriter Italic", rather than "American Typewriter" (the 'font-style: italic;' is correctly written and would be enough on its own to render the oblique font correctly).

The result of this is that a PDF export renders the italicised/oblique portion incorrectly as a normal font. However a PNG export +does+ render it correctly. Fixing the font name in the XML editor and reloading the document is sufficient to get it working again.

If you repeat the experiment with a font that does have an italic variant, such as "Times New Roman", the font specification is written correctly (without the "Italic" suffix) and the PDF export works fine.

Running 0.48.2 (r9819) on OS X 10.6.8. Sample bug case attached.

Revision history for this message
Jon (jonpad) wrote :
description: updated
summary: - Italic of font with no italic variant results in wrong family
- specification & rendering issues
+ Italic styling upon font with no italic variant results in wrong family
+ specification, rendering issues
Revision history for this message
su_v (suv-lp) wrote :

AFAICT this is a duplicate of
Bug #200899 “Font style ignored in eps/pdf output”
<https://bugs.launchpad.net/inkscape/+bug/200899>

tags: added: exporting fonts pdf
removed: font italic os-x
Revision history for this message
Jon (jonpad) wrote :

Hi ~suv, thanks. That sounds very similar, so I agree this one should be marked as a dup. Apologies I didn't spot that one - I did a prior search, but didn't see it :-)

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.