Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.postscript > #709

Re: ghostscript Font Substitution

From Hans-Juergen Frevel <hjfrevel@1med.uni-kiel.de>
Newsgroups comp.lang.postscript
Subject Re: ghostscript Font Substitution
Date 2012-06-06 14:13 +0200
Message-ID <a38vr4Fg2dU1@mid.individual.net> (permalink)
References <a38gb8Fpi9U1@mid.individual.net> <a38l8pFu9gU1@mid.individual.net>

Show all headers | View raw


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

Back to comp.lang.postscript | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

ghostscript Font Substitution Hans-Juergen Frevel <hjfrevel@1med.uni-kiel.de> - 2012-06-06 09:48 +0200
  Re: ghostscript Font Substitution Helge Blischke <h.blischke@acm.org> - 2012-06-06 11:12 +0200
    Re: ghostscript Font Substitution Hans-Juergen Frevel <hjfrevel@1med.uni-kiel.de> - 2012-06-06 14:13 +0200
      Re: ghostscript Font Substitution ken <ken@spamcop.net> - 2012-06-06 20:37 +0100

csiph-web