Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 460558 - app-text/ghostscript-gpl - ps2pdf loses italic fonts
Summary: app-text/ghostscript-gpl - ps2pdf loses italic fonts
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Printing (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Printing Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-06 17:37 UTC by Thomas Capricelli
Modified: 2017-02-12 11:39 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Capricelli 2013-03-06 17:37:07 UTC
When converting a ps/pdf file to pdf using either ps2pdf* or gs, italic fonts are lost (ps2pdf* are just frontend for gs).

After googling about it, it seems that the reason is that gs doens't find those (some?) italic fonts, and hence substitute it. Extract from output is 

----------------------------------------------------------------
Substituting font Times-Roman for Times New Roman,Italic.
Substituting font Times-Bold for Times New Roman,BoldItalic.
----------------------------------------------------------------

I've found this page with google : 
http://old.nabble.com/Ghostscript-8.70-PDF-Italic-Fonts-td27881775.html

And this indeed fixes my problem.

Now, i have no idea what this is/means (funny how it is important that the ';' are on their own lines..). And I don't know if this is a packaging bug or upstream. Anyway, i think it should be important that the file installed by the gentoo ebuild contains those lines.
Quite some people have the problem according to google (not only in gentoo).

On my system (~amd64) the installed file i had to modify is :
/usr/share/ghostscript/9.06/Resource/Init/Fontmap

Reproducible: Always
Comment 1 Thomas Capricelli 2014-04-30 17:48:09 UTC
Updated link

http://www.ghostscript.com/pipermail/gs-devel/2011-August/009020.html
Comment 2 Thomas Capricelli 2014-04-30 17:49:31 UTC
copy/pasting the fix here for reference :

add this to /usr/share/ghostscript/*/Resource/Init/Fontmap :

------------------------------------------------------------------------
(Times New Roman)                             /TimesNewRomanPSMT             
;
(Times New Roman Bold)                      /TimesNewRomanPS-BoldMT        
;
(Times New Roman,Italic)                     /TimesNewRomanPS-ItalicMT      
;
(Times New Roman,BoldItalic)               /TimesNewRomanPS-BoldItalicMT
;
------------------------------------------------------------------------
Comment 3 Andreas K. Hüttel archtester gentoo-dev 2017-02-11 22:56:06 UTC
(In reply to Thomas Capricelli from comment #2)
> copy/pasting the fix here for reference :
> 
> add this to /usr/share/ghostscript/*/Resource/Init/Fontmap :
> 
> ------------------------------------------------------------------------
> (Times New Roman)                             /TimesNewRomanPSMT             
> ;
> (Times New Roman Bold)                      /TimesNewRomanPS-BoldMT        
> ;
> (Times New Roman,Italic)                     /TimesNewRomanPS-ItalicMT      
> ;
> (Times New Roman,BoldItalic)               /TimesNewRomanPS-BoldItalicMT
> ;
> ------------------------------------------------------------------------

I'm seeing a similar block at the end of the default fontmap, so I assume this is fixed. If not, please reopen or leave a message.
Comment 4 Thomas Capricelli 2017-02-12 11:39:31 UTC
(In reply to Andreas K. Hüttel from comment #3)

> I'm seeing a similar block at the end of the default fontmap, so I assume
> this is fixed. If not, please reopen or leave a message.

For reference, Andreas means at the end of : /usr/share/ghostscript/*/Resource/Init/Fontmap.GS