Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!news-1.dfn.de!news.dfn.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Hans-Juergen Frevel Newsgroups: comp.lang.postscript Subject: Re: ghostscript Font Substitution Date: Wed, 06 Jun 2012 14:13:23 +0200 Lines: 84 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: individual.net g9sxsNHRLZQH+wgmd4NTuguRxegwIjsnZR1n0aBEKQDgXFJdlzPpJemi999NYktbeUwkAaCos1 Cancel-Lock: sha1:peaw5KSfUfj36GL4WpfpXDHr2w8= User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 In-Reply-To: Xref: csiph.com comp.lang.postscript:709 Am 06.06.2012 11:12, schrieb Helge Blischke: > Hans-Juergen Frevel wrote: > >> Hello, >> >> I have a PDF-File which don't show the german umlauts with gsview. I >> have the following message: >> >> GSview 5.0 2012-01-17 >> GPL Ghostscript 9.05 (2012-02-08) >> Copyright (C) 2010 Artifex Software, Inc. All rights reserved. >> This software comes with NO WARRANTY: see the file PUBLIC for details. >> Scanning PDF file >> %GSVIEW_PDF_PAGES: 1 1 >> Displaying PDF page 1 >> %GSVIEW_PDF_PAGE: 1 >> %GSVIEW_PDF_MEDIA: [0 0 595.273 841.886] >> %GSVIEW_PDF_ROTATE: 0 >> Can't find CID font "CourierNew". >> Attempting to substitute CID font /Adobe-Identity for /CourierNew, see >> doc/Use.htm#CIDFontSubstitution. >> The substitute CID font "Adobe-Identity" is not provided either. >> attempting to use fallback CIDFont.See doc/Use.htm#CIDFontSubstitution. >> Loading a TT font from %rom%Resource/CIDFSubst/DroidSansFallback.ttf to >> emulate a CID font Adobe-Identity ... Done. >> Can't find CID font "CourierNew". >> Attempting to substitute CID font /Adobe-Identity for /CourierNew, see >> doc/Use.htm#CIDFontSubstitution. >> Can't find CID font "Tahoma". >> Attempting to substitute CID font /Adobe-Identity for /Tahoma, see >> doc/Use.htm#CIDFontSubstitution. >> >> I haven't understand how to substitute the missing fonts. >> >> Thank you for any help >> >> greetings >> Hans-Jürgen > You didn't tell anything about the system you are running on (presumably > Windows?), but if set up corrrectly, Ghostscript should fall back to the > DroidSansFallback font, which *does* contain the umlauts. > > But - again assuming you are on a Windows system - CourierNew and Tahoma > belong, as far as I know, to the standard fonts supplied with every Windows > installation, so you should set up a cidfmap file as described in the > Use.htm document and force GSview to use that by providing the -I command > line switch (as your Ghostscript has the default resources compiled in). > > Helge > > PS: Issues like this ever since lead me to not compile in the resources > whenever I compile Ghostscript from the sources (I'm using variuos Unices). > Hello, the system is windows XP. I have added the following line to the cidfmap file and tried the -I switch: /CourierNew << /FileType /TrueType /SubfontID 0 /CSI [(GB1) 2] /Path (C:/WINDOWS/Fonts/cour.ttf) >> ; With this line the document shows only a white area and the following message appears: GSview 5.0 2012-01-17 GPL Ghostscript 9.05 (2012-02-08) Copyright (C) 2010 Artifex Software, Inc. All rights reserved. This software comes with NO WARRANTY: see the file PUBLIC for details. Scanning PDF file %GSVIEW_PDF_PAGES: 1 1 Displaying PDF page 1 %GSVIEW_PDF_PAGE: 1 %GSVIEW_PDF_MEDIA: [0 0 595.273 841.886] %GSVIEW_PDF_ROTATE: 0 **** Warning: can't process font stream, loading font by the name. **** Error reading a content stream. The page may be incomplete. **** File did not complete the page properly and may be damaged. If I delete the line, the first message appears and there are no umlauts as described. Hans-Jürgen