For Programmers: Free Programming Magazines  


Home > Archive > PostScript > February 2008 > Would prefer ghostscript to crash instead of making substitutions









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Would prefer ghostscript to crash instead of making substitutions
laredotornado

2008-02-14, 7:13 pm

Hi,

I recently downloaded Ghostscript 8.54 for Fedora Core 6 Linux. When
I run a command like the below:

gs -I/usr/share/fonts/default/Type1/:/usr/share/libwmf/fonts/ -
dNOPAUSE -dBATCH -sDEVICE=jpeg -sOutputFile=usps%d.jpg usps.pdf -c -
quit

I will get the messages like:

Page 3
Substituting font Helvetica-Bold for Arial-BoldMT.
Substituting font Helvetica-BoldOblique for Arial-BoldItalicMT.
Substituting font Times-Roman for TimesNewRomanPSMT.
Substituting font Helvetica for ArialMT.

First question is, how do I find out what the font file I need is for
a substituted font, for example, "Arial-BoldMT."?

Next quesiton is, is there any way to make ghostscript terminate
instead of making a font substitution?

Thanks, - Dave
Ross Presser

2008-02-14, 7:13 pm

On Feb 14, 3:38=A0pm, laredotornado <laredotorn...@zipmail.com> wrote:
> Hi,
>
> I recently downloaded Ghostscript 8.54 for Fedora Core 6 Linux. =A0When
> I run a command like the below:
>
> gs -I/usr/share/fonts/default/Type1/:/usr/share/libwmf/fonts/ -
> dNOPAUSE -dBATCH -sDEVICE=3Djpeg -sOutputFile=3Dusps%d.jpg usps.pdf -c -
> quit
>
> I will get the messages like:
>
> Page 3
> Substituting font Helvetica-Bold for Arial-BoldMT.
> Substituting font Helvetica-BoldOblique for Arial-BoldItalicMT.
> Substituting font Times-Roman for TimesNewRomanPSMT.
> Substituting font Helvetica for ArialMT.


In truth, all of these particular substitutions are generally useful.
"MT" at the end usually indicates a subset font generated by Adobe
Acrobat Distiller; Arial is a clone of (the much superior) Helvetica
that ships with Windows; and TimesNewRoman is identical to Times-
Roman. But perhaps you have other substitutions not mentioned here
that are troubling you -- particularly, when ugly Courier is
substituted for some nice-looking font you were expecting.

> First question is, how do I find out what the font file I need is for
> a substituted font, for example, "Arial-BoldMT."?


Since font files can be named things that have absolutely nothing to
do with the fonts they represent, the only sure way is to make a
complete catalog of the fonts you have. However, it is sometimes
better to just point Ghostscript at your whole font directory or
directories and let it look for you. Use -sFONTPATH=3D/home/person/
fontbin or whatever as a commandline option. (Actually, from your
given commandline, you are already doing this with your font
directories.)

> Next quesiton is, is there any way to make ghostscript terminate
> instead of making a font substitution?


I can't find one; but perhaps you could do something like this in your
shell:

(gs -I/usr/share ... (rest of commandline) 2&>1 |grep -q
'Substituting') && rm output;echo "ERROR!"
Aandi Inston

2008-02-15, 4:29 am

Ross Presser <rpresser@gmail.com> wrote:

>"MT" at the end usually indicates a subset font generated by Adobe
>Acrobat Distiller


Subset fonts have +xxxxxx at the end, with six random characters, but
these are stripped from the PostScript.

MT indicates the font foundry. MT=Monotype. Various people license and
sell these fonts.
----------------------------------------
Aandi Inston
Please support usenet! Post replies and follow-ups, don't e-mail them.

Ross Presser

2008-02-15, 7:16 pm

On Feb 15, 4:54=A0am, qu...@dial.pipex.con (Aandi Inston) wrote:
> Ross Presser <rpres...@gmail.com> wrote:
>
> Subset fonts have +xxxxxx at the end, with six random characters, but
> these are stripped from the PostScript.
>
> MT indicates the font foundry. MT=3DMonotype. Various people license and
> sell these fonts.


Sorry. I only see "MT" in files that have come through distiller --
even when the source document uses "Arial" the distilled file says
"ArialMT" -- so I misinterpreted it.
Aandi Inston

2008-02-16, 8:11 am

Ross Presser <rpresser@gmail.com> wrote:

>. I only see "MT" in files that have come through distiller --
>even when the source document uses "Arial" the distilled file says
>"ArialMT" -- so I misinterpreted it.


What you may be seeing is the different names that a single font may
have. There can (among others) be a display name on screen in Windows,
and a PostScript name, often different, not least because of the need
to avoid spaces in that name. A PDF is likely (but not certain) to
use the PostScript name.

----------------------------------------
Aandi Inston
Please support usenet! Post replies and follow-ups, don't e-mail them.

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com