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


Groups > comp.lang.postscript > #2849 > unrolled thread

How can PostScript progmagatically tell if Distiller substitutes a Courier font?

Started bydon lancaster <don@tinaja.com>
First post2016-10-04 13:55 -0700
Last post2016-10-06 15:43 -0700
Articles 7 — 4 participants

Back to article view | Back to comp.lang.postscript


Contents

  How can PostScript progmagatically tell if Distiller substitutes a Courier font? don lancaster <don@tinaja.com> - 2016-10-04 13:55 -0700
    Re: How can PostScript progmagatically tell if Distiller substitutes a Courier font? luser droog <luser.droog@gmail.com> - 2016-10-04 16:07 -0700
      Re: How can PostScript progmagatically tell if Distiller substitutes a Courier font? don lancaster <don@tinaja.com> - 2016-10-04 17:06 -0700
        Re: How can PostScript progmagatically tell if Distiller substitutes a Courier font? don lancaster <don@tinaja.com> - 2016-10-04 17:44 -0700
        Re: How can PostScript progmagatically tell if Distiller substitutes a Courier font? Lawrence D’Oliveiro <lawrencedo99@gmail.com> - 2016-10-05 18:44 -0700
          Re: How can PostScript progmagatically tell if Distiller substitutes a Courier font? abeddie <abeddie@hotmail.com> - 2016-10-06 08:31 -0700
            Re: How can PostScript progmagatically tell if Distiller substitutes a Courier font? Lawrence D’Oliveiro <lawrencedo99@gmail.com> - 2016-10-06 15:43 -0700

#2849 — How can PostScript progmagatically tell if Distiller substitutes a Courier font?

Fromdon lancaster <don@tinaja.com>
Date2016-10-04 13:55 -0700
SubjectHow can PostScript progmagatically tell if Distiller substitutes a Courier font?
Message-ID<e5ij9tFrlqoU1@mid.individual.net>
currentfont --> type --> fonttype does not seem to work.

One possible ap would be to start with a PS Name list and use it to
scan a PC to find all PS fonts currently available.

The start of a complete open source name list appears as
http://www.tinaja.com/psFontnames.psl

Please email don@tinaja.com with your additions.

Bunches more at http://www.tinaja.com/pssamp1.shtml

-- 
Many thanks,

Don Lancaster                          voice phone: (928)428-4073
Synergetics   3860 West First Street   Box 809 Thatcher, AZ 85552
rss: http://www.tinaja.com/whtnu.xml   email: don@tinaja.com

Please visit my GURU's LAIR web site at http://www.tinaja.com

[toc] | [next] | [standalone]


#2851

Fromluser droog <luser.droog@gmail.com>
Date2016-10-04 16:07 -0700
Message-ID<da10e0c6-69d9-4681-88ba-f0713b1670f8@googlegroups.com>
In reply to#2849
On Tuesday, October 4, 2016 at 3:55:27 PM UTC-5, don lancaster wrote:
> currentfont --> type --> fonttype does not seem to work.
> 

Yes. currentfont will yield a dictionary. You can
check the /FontName to see if its the same as the 
call to findfont.

[toc] | [prev] | [next] | [standalone]


#2852

Fromdon lancaster <don@tinaja.com>
Date2016-10-04 17:06 -0700
Message-ID<ff7dd2d1-f940-a3c3-3e94-4dcc29b62f1c@tinaja.com>
In reply to#2851
On 10/4/2016 4:07 PM, luser droog wrote:
> On Tuesday, October 4, 2016 at 3:55:27 PM UTC-5, don lancaster wrote:
>> currentfont --> type --> fonttype does not seem to work.
>>
>
> Yes. currentfont will yield a dictionary. You can
> check the /FontName to see if its the same as the
> call to findfont.
>

Apparently currentfont continues to return the requested filename
rather than Courier.

-- 
Many thanks,

Don Lancaster                          voice phone: (928)428-4073
Synergetics   3860 West First Street   Box 809 Thatcher, AZ 85552
rss: http://www.tinaja.com/whtnu.xml   email: don@tinaja.com

Please visit my GURU's LAIR web site at http://www.tinaja.com

[toc] | [prev] | [next] | [standalone]


#2853

Fromdon lancaster <don@tinaja.com>
Date2016-10-04 17:44 -0700
Message-ID<e5j0noF3b2U1@mid.individual.net>
In reply to#2852
On 10/4/2016 5:06 PM, don lancaster wrote:
> On 10/4/2016 4:07 PM, luser droog wrote:
>> On Tuesday, October 4, 2016 at 3:55:27 PM UTC-5, don lancaster wrote:
>>> currentfont --> type --> fonttype does not seem to work.
>>>
>>
>> Yes. currentfont will yield a dictionary. You can
>> check the /FontName to see if its the same as the
>> call to findfont.
>>
>
> Apparently currentfont continues to return the requested filename
> rather than Courier.
>

Also, currentfont may return a filename or a dictionary.

-- 
Many thanks,

Don Lancaster                          voice phone: (928)428-4073
Synergetics   3860 West First Street   Box 809 Thatcher, AZ 85552
rss: http://www.tinaja.com/whtnu.xml   email: don@tinaja.com

Please visit my GURU's LAIR web site at http://www.tinaja.com

[toc] | [prev] | [next] | [standalone]


#2862

FromLawrence D’Oliveiro <lawrencedo99@gmail.com>
Date2016-10-05 18:44 -0700
Message-ID<2907cd84-da78-4b2d-ba1e-183811470247@googlegroups.com>
In reply to#2852
On Wednesday, October 5, 2016 at 1:06:55 PM UTC+13, don lancaster wrote:
> Apparently currentfont continues to return the requested filename
> rather than Courier.

This works with Ghostscript:

    GS>/Palatino findfont 72 scalefont setfont
    Querying operating system for font files...
    Can't find (or can't open) font file /usr/share/ghostscript/9.19/Resource/Font/Palatino.
    Can't find (or can't open) font file Palatino.
    Didn't find this font on the system!
    Substituting font Palatino-Roman for Palatino.
    Loading URWPalladioL-Roma font from /usr/share/fonts/type1/gsfonts/p052003l.pfb... 4362012 2956704 9507976 4308662 1 done.
    GS>currentfont /FontName get =
    Palatino
    GS>currentfont /FontInfo get /FullName get =
    URW Palladio L Roman

[toc] | [prev] | [next] | [standalone]


#2863

Fromabeddie <abeddie@hotmail.com>
Date2016-10-06 08:31 -0700
Message-ID<d781c7c9-3175-456d-8375-edf1d2510fcd@googlegroups.com>
In reply to#2862
On Wednesday, October 5, 2016 at 9:44:20 PM UTC-4, Lawrence D’Oliveiro wrote:
> On Wednesday, October 5, 2016 at 1:06:55 PM UTC+13, don lancaster wrote:
> > Apparently currentfont continues to return the requested filename
> > rather than Courier.
> 
> This works with Ghostscript:
> 
>     GS>/Palatino findfont 72 scalefont setfont
>     Querying operating system for font files...
>     Can't find (or can't open) font file /usr/share/ghostscript/9.19/Resource/Font/Palatino.
>     Can't find (or can't open) font file Palatino.
>     Didn't find this font on the system!
>     Substituting font Palatino-Roman for Palatino.
>     Loading URWPalladioL-Roma font from /usr/share/fonts/type1/gsfonts/p052003l.pfb... 4362012 2956704 9507976 4308662 1 done.
>     GS>currentfont /FontName get =
>     Palatino
>     GS>currentfont /FontInfo get /FullName get =
>     URW Palladio L Roman

%!
/Helvetica 18 selectfont
currentfont /FontName get =
/FakeFont  18 selectfont
currentfont /FontName get =

Also got Courier instead of FakeFont with Distiller, PostScript 3020, and gs. 

[toc] | [prev] | [next] | [standalone]


#2865

FromLawrence D’Oliveiro <lawrencedo99@gmail.com>
Date2016-10-06 15:43 -0700
Message-ID<8f4781d1-e9f0-46a0-9b7c-943d93f3595a@googlegroups.com>
In reply to#2863
On Friday, October 7, 2016 at 4:31:35 AM UTC+13, abeddie wrote:
> /FakeFont  18 selectfont
> currentfont /FontName get =

Ghostscript works for me:

    GS>/FakeFont 18 selectfont
    Querying operating system for font files...
    Can't find (or can't open) font file /usr/share/ghostscript/9.19/Resource/Font/FakeFont.
    Can't find (or can't open) font file FakeFont.
    Didn't find this font on the system!
    Substituting font Courier for FakeFont.
    Loading NimbusMono-Regular font from /usr/share/ghostscript/9.19/Resource/Font/NimbusMono-Regular... 4471612 3125213 9467592 4302095 1 done.
    GS>currentfont /FontName get =
    Courier

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.postscript


csiph-web