Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.postscript > #1734 > unrolled thread
| Started by | jdaw1 <jdawiseman@gmail.com> |
|---|---|
| First post | 2013-11-23 15:13 -0800 |
| Last post | 2013-11-25 05:59 -0800 |
| Articles | 8 — 2 participants |
Back to article view | Back to comp.lang.postscript
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
| From | jdaw1 <jdawiseman@gmail.com> |
|---|---|
| Date | 2013-11-23 15:13 -0800 |
| Subject | resourceforall fails |
| Message-ID | <2039b9b4-5def-4c13-b0ed-2f6fc36e691d@googlegroups.com> |
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 @ e B, ˇˇˇˇt*√ Resource/CIDFont/NanumGothicExtraBold ]%%
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.
[toc] | [next] | [standalone]
| From | Helge Blischke <h.blischke@acm.org> |
|---|---|
| Date | 2013-11-24 20:40 +0100 |
| Message-ID | <bff31mFdfkeU1@mid.individual.net> |
| In reply to | #1734 |
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
[toc] | [prev] | [next] | [standalone]
| From | jdaw1 <jdawiseman@gmail.com> |
|---|---|
| Date | 2013-11-24 16:20 -0800 |
| Message-ID | <6d32d97b-3d86-4ec7-84f0-312e3e00256d@googlegroups.com> |
| In reply to | #1735 |
> NanumExtraBold which seems to throw the error Yes, and no. I’ve already had Font Book do “Validate Fonts”, and remove the red-flagged. But even that was cheating, as: > Please … 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? So I really want to fix the PostScript rather than the fonts, such that when the code is run on any machine, with or without duff fonts, it still works. (Well, of course I want to fix both PostScript and fonts, but only the PostScript is relevant here.)
[toc] | [prev] | [next] | [standalone]
| From | jdaw1 <jdawiseman@gmail.com> |
|---|---|
| Date | 2013-11-25 02:10 -0800 |
| Message-ID | <9456c32b-9bb8-44ca-8760-4fab362c5035@googlegroups.com> |
| In reply to | #1734 |
There appear to be non-ASCII characters in the log output, so I’ve uploaded some files. http://www.jdawiseman.com/papers/bugs/20131125_resourceforall.ps http://www.jdawiseman.com/papers/bugs/20131125_resourceforall.log Obviously the first file made the second.
[toc] | [prev] | [next] | [standalone]
| From | Helge Blischke <h.blischke@acm.org> |
|---|---|
| Date | 2013-11-25 12:43 +0100 |
| Message-ID | <bfgrevFoea8U1@mid.individual.net> |
| In reply to | #1737 |
jdaw1 wrote: > There appear to be non-ASCII characters in the log output, so I’ve > uploaded some files. > http://www.jdawiseman.com/papers/bugs/20131125_resourceforall.ps > http://www.jdawiseman.com/papers/bugs/20131125_resourceforall.log > Obviously the first file made the second. Maybe it is an implementation bug in Acrobat 11. At least it seems uncommen to me that the resourceforall operator inernally calls findresource (maybe it is a Windows specific hack to get the names from the fonts folder?). And, CID fonts are a separate resosurce category (at least a of PLRM 3rd ed), so why is a CID font treated when listing "ordinary" fonts? Helge
[toc] | [prev] | [next] | [standalone]
| From | jdaw1 <jdawiseman@gmail.com> |
|---|---|
| Date | 2013-11-25 05:17 -0800 |
| Message-ID | <16a0ca6a-0314-4647-9982-747df5912572@googlegroups.com> |
| In reply to | #1738 |
Mac, not Windows. But you have made me check the version number: though it fails in XI, it works in Distiller 8. Sigh. It must be an Adobe bug. But is there anything I can do to trap or prevent the problem? (Also, uploaded file slightly updated.)
[toc] | [prev] | [next] | [standalone]
| From | Helge Blischke <h.blischke@acm.org> |
|---|---|
| Date | 2013-11-25 14:47 +0100 |
| Message-ID | <bfh2mlFpu22U1@mid.individual.net> |
| In reply to | #1739 |
jdaw1 wrote: > Mac, not Windows. But you have made me check the version number: though it > fails in XI, it works in Distiller 8. Sigh. It must be an Adobe bug. > > But is there anything I can do to trap or prevent the problem? > > (Also, uploaded file slightly updated.) File a bug. Helge
[toc] | [prev] | [next] | [standalone]
| From | jdaw1 <jdawiseman@gmail.com> |
|---|---|
| Date | 2013-11-25 05:59 -0800 |
| Message-ID | <d626d292-4bfa-48b7-8ad0-23874535c1d2@googlegroups.com> |
| In reply to | #1740 |
> File a bug. Done. Thank you for the suggestion. So it should work, but doesn’t. Is there a way to achieve much the same (array holding names of available fonts) that doesn’t have this problem?
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.postscript
csiph-web