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


Groups > comp.lang.postscript > #1735

Re: resourceforall fails

From Helge Blischke <h.blischke@acm.org>
Newsgroups comp.lang.postscript
Subject Re: resourceforall fails
Followup-To comp.lang.postscript
Date 2013-11-24 20:40 +0100
Message-ID <bff31mFdfkeU1@mid.individual.net> (permalink)
References <2039b9b4-5def-4c13-b0ed-2f6fc36e691d@googlegroups.com>

Followups directed to: comp.lang.postscript

Show all headers | View raw


jdaw1 wrote:

> I want to create an array with a list of available fonts. So, some
> simplified code:
> 
> 
> %!
> 
> (product = ) = product =
> (+ FontNames) ==
> /FontNames [
> (*) {dup length string copy} 65535 string /Font resourceforall
> ] def
> (- FontNames) ==
> (+pstack) = pstack (-pstack) =
> 
> 
> This produces a log file (from which a block of font names have bee
> deleted.
> 
> 
> 
> product =
> Acrobat Distiller 11.0
> 
> (+ FontNames)
> %%[ Error: undefinedresource; OffendingCommand: findresource; ErrorInfo:
> CharOffsets @
> 
> 
> Stack:
> /CIDFont
> /NanumGothicExtraBold
> /CIDFont
> /NanumGothicExtraBold
> false
> -dict-
> (%hostfont%Resource/CIDFont/)
> /cid_CIDFONT_INFO
> (ZyphyteOffset)
> (ZyphyteOffsetOblique)
> ••• Many font names deleted •••
> (Roadgeek2005Series1B)
> (Roadgeek2005Mittelschrift)
> (Roadgeek2005Engschrift)
> (Roadgeek2000SeriesF)
> 
> 
> 
> %%[ Flushing: rest of job (to end-of-file) will be ignored ]%%
> %%[ Warning: PostScript error. No PDF file produced. ] %%
> 
> 
> 
> This is unhelpful. I could wrap the resourceforall in a stopped, but that
> will stop the loop, rather than causing it to resume at the next resource.
> So many font names will be missing.
> 
> Please, learned folks of this fine forum, what can be done to prevent
> errors, and not just on my current machine, but on any machine on which
> the PostScript might be executed?
> 
> If it helps, my suspicion is that a font name is being read as if in a
> different format, so is being read as lots of weird control characters.

This program run from Ghostscript 9.97 prints:

product = 
GPL Ghostscript
(+ FontNames)
(- FontNames)
+pstack
-pstack

and the /FontNames array contains a great many of font names.

I'suggest you look after the font NanumExtraBold which seems to throw the 
error (or you could mail me the font to do some analysis).

Helge

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


Thread

resourceforall fails jdaw1 <jdawiseman@gmail.com> - 2013-11-23 15:13 -0800
  Re: resourceforall fails Helge Blischke <h.blischke@acm.org> - 2013-11-24 20:40 +0100
    Re: resourceforall fails jdaw1 <jdawiseman@gmail.com> - 2013-11-24 16:20 -0800
  Re: resourceforall fails jdaw1 <jdawiseman@gmail.com> - 2013-11-25 02:10 -0800
    Re: resourceforall fails Helge Blischke <h.blischke@acm.org> - 2013-11-25 12:43 +0100
      Re: resourceforall fails jdaw1 <jdawiseman@gmail.com> - 2013-11-25 05:17 -0800
        Re: resourceforall fails Helge Blischke <h.blischke@acm.org> - 2013-11-25 14:47 +0100
          Re: resourceforall fails jdaw1 <jdawiseman@gmail.com> - 2013-11-25 05:59 -0800

csiph-web