SVG with Nimbus Sans L gets Courier in PDF

Bug #168077 reported by Aricblumer
2
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
Medium
Unassigned

Bug Description

I have an SVG file (attached) that uses Nimbus Sans L,
but when I save as PDF with Text and Graphics, the font
shown in both acroread and evince is Courier. I've
attached both.

Revision history for this message
Aricblumer (aricblumer) wrote :
Revision history for this message
Aricblumer (aricblumer) wrote : Resulting PDF

Other attachments

Revision history for this message
Aricblumer (aricblumer) wrote :

More information. This is with Fedora Core 6 and inkscape
0.44.1. I was going to attach output of
FC_DEBUG=8191 fc-list

But the file is too big. Let me know if you want to see any
fc-list output.

Revision history for this message
Aricblumer (aricblumer) wrote :

Here are a couple more files that show interesting things.
I have arial truetype font available, and if I select it in
inkscape, and then put in more text as Nimbus Sans L, then
the Arial is shown with Nimbus Sans L, the Nimbus Sans L is
correct, and another font MgOpen Moderna is shown as
Courier. The SVG file shows Arial, Nimbus, and Moderna
fonts, each as text and converted to path. Of each pair,
the top is the object to path, and the bottom is as text.
You can see in the PDF that the top line is Arial, but the
second is Nimbus Sans L. For Nimbus, they're both Nimbus.
For Moderna, the error is obvious.

Revision history for this message
Aricblumer (aricblumer) wrote : Corresponding SVG file.

Other attachments

Revision history for this message
Aricblumer (aricblumer) wrote :

I have located the source of this problem. There is a font
name problem, apparently. To create a PDF, inkscape
apparently uses postscript output which invokes ghostscript.
 The font name that Inkscape produces in the EPS and PS
files for Nimbus is NimbusSansL-Regu. In ghostscript's
Fontmap.GS file, it has this:
/NimbusSanL-Regu (n019003l.pfb) ;

Note the "San" rather than "Sans".

If I add this line to Fontmap.GS:
/NimbusSansL-Regu (n019003l.pfb) ;
the PDF gets the correct font.
I'll leave this open, because I do not know if the problem
is in ghostscript or inkscape or fontconfig or what.

Revision history for this message
Aricblumer (aricblumer) wrote :

One more thing: The adding of the -ISOLatin1 to the font
names by inkscape really messes things up for me. I hacked
the source to remove the -ISOLatin1 suffix, and things work
much, much better.

Revision history for this message
Bryce Harrington (bryce) wrote :

Originator: NO

Thanks for reporting the workarounds. If you get your hacks into a shape
you feel comfortable sharing with, please post them back here. Meanwhile
this bug can stand open. Maybe someone can take a deeper look into this.

vonHalenbach (lustik)
Changed in inkscape:
status: New → Confirmed
Revision history for this message
su_v (suv-lp) wrote :

not reproduced with Inkscape 0.47+devel r9495 on OS X 10.5.8

Fonts are now always embedded into the PDF (Cairo-based PDF export).

$ pdffonts 168077-nimbus_prob.pdf
name type emb sub uni object ID
------------------------------------ -------------- --- --- --- ---------
SNKYUK+NimbusSansL-Regu Type 1C yes yes no 8 0

$ pdffonts 168077-nimbus_prob-r9495.pdf
name type emb sub uni object ID
------------------------------------ -------------- --- --- --- ---------
NimbusSansL Type 1 yes no yes 5 0

$ pdffonts 168077-junk.pdf
name type emb sub uni object ID
------------------------------------ -------------- --- --- --- ---------
GRBGND+ArialMT Type 1C yes yes no 8 0
KZTRDN+MgOpenModerna Type 1C yes yes no 10 0
KJZAGF+NimbusSansL-Regu Type 1C yes yes no 12 0
ISWFXU+NimbusRomanNo9L-Regu Type 1C yes yes no 14 0
OFRIFU+NimbusRomanNo9L-Regu-ISOLatin1 Type 1C yes yes no 16 0

$ pdffonts 168077-junk-r9495.pdf
name type emb sub uni object ID
------------------------------------ -------------- --- --- --- ---------
Arial CID TrueType yes no yes 5 0
MgOpenModerna CID TrueType yes no yes 6 0
NimbusSansL Type 1 yes no yes 7 0
NimbusRomanNo9L Type 1 yes no yes 8 0

tags: added: pdf
removed: linux saving
Changed in inkscape:
milestone: none → 0.47
status: Confirmed → Fix Released
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.