Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

"When in doubt, print 'em out." -- Karl's Programming Proverb 0x7


computers / alt.os.linux.suse / Re: Adding Fonts to Ghostscript

SubjectAuthor
* Adding Fonts to GhostscriptPaul R Schmidtbleicher
`* Re: Adding Fonts to GhostscriptJeffrey H. Coffield
 `* Re: Adding Fonts to GhostscriptPaul R Schmidtbleicher
  +- Re: Adding Fonts to GhostscriptPaul R Schmidtbleicher
  `* Re: Adding Fonts to GhostscriptJeffrey H. Coffield
   `* Re: Adding Fonts to GhostscriptPaul R Schmidtbleicher
    `* Re: Adding Fonts to GhostscriptJeffrey H. Coffield
     `- Re: Adding Fonts to GhostscriptPaul R Schmidtbleicher

1
Adding Fonts to Ghostscript

<jl0hjhF636mU1@mid.individual.net>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=631&group=alt.os.linux.suse#631

  copy link   Newsgroups: alt.os.linux.suse
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!news.mixmin.net!news2.arglkargh.de!news.karotte.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: pau...@foxinternet.net (Paul R Schmidtbleicher)
Newsgroups: alt.os.linux.suse
Subject: Adding Fonts to Ghostscript
Date: 4 Aug 2022 00:18:57 GMT
Lines: 19
Message-ID: <jl0hjhF636mU1@mid.individual.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net ZSHHGegoxyTkeD3GAn8CLA29+uKtDbgI4/2meHneZA7xSbdGg2
Cancel-Lock: sha1:23xzmWXa8yRQ4/FtX3Fuf3k0x64=
User-Agent: Pan/0.151 (Butcha; a6f6327)
 by: Paul R Schmidtbleich - Thu, 4 Aug 2022 00:18 UTC

In "/usr/share/ghostscript/9.54.0/Resource/Init/" are two Fontmap files.
One is "Fontmap" 109B(ytes) I assume
The other is "Fontmap.GS" which can be modified by utilities like "Kate"

I modified "Fontmap.GS" for 4 "alias" fonts pointing to fonts in a
directory included.

% Aliases

/Times-BoldItalic (/usr/share/PSFONTS/TNRBI.PFB) ;
/Times-Bold (/usr/share/PSFONTS/TNRB.PFB) ;
/Times-Italic (/usr/share/PSFONTS/TNRI.PFB) ;
/Times-Roman (/usr/share/PSFONTS/TNR.PFB) ;

However, it makes no difference when seeking to print a "PS" postscript
file. The nimbus font is chosen

What step am I missing to get Ghostscript to recognize the changes to the
"Fontmap.GS" file.

Re: Adding Fonts to Ghostscript

<tcgpt3$2rj7u$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=632&group=alt.os.linux.suse#632

  copy link   Newsgroups: alt.os.linux.suse
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: jeff...@digitalsynergyinc.com (Jeffrey H. Coffield)
Newsgroups: alt.os.linux.suse
Subject: Re: Adding Fonts to Ghostscript
Date: Thu, 4 Aug 2022 08:50:57 -0700
Organization: A noiseless patient Spider
Lines: 33
Message-ID: <tcgpt3$2rj7u$1@dont-email.me>
References: <jl0hjhF636mU1@mid.individual.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 4 Aug 2022 15:50:59 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="b7a25c766d62e3f43d34e645eeb2bfe9";
logging-data="3001598"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19ZkNIFKECqGisf0k7vnKsg4VPAJwbCFw0="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.11.0
Cancel-Lock: sha1:a4GIRr/IM6irqqrXObXTj97MeV4=
Content-Language: en-US
In-Reply-To: <jl0hjhF636mU1@mid.individual.net>
 by: Jeffrey H. Coffield - Thu, 4 Aug 2022 15:50 UTC

On 8/3/22 17:18, Paul R Schmidtbleicher wrote:
> In "/usr/share/ghostscript/9.54.0/Resource/Init/" are two Fontmap files.
> One is "Fontmap" 109B(ytes) I assume
> The other is "Fontmap.GS" which can be modified by utilities like "Kate"
>
> I modified "Fontmap.GS" for 4 "alias" fonts pointing to fonts in a
> directory included.
>
> % Aliases
>
> /Times-BoldItalic (/usr/share/PSFONTS/TNRBI.PFB) ;
> /Times-Bold (/usr/share/PSFONTS/TNRB.PFB) ;
> /Times-Italic (/usr/share/PSFONTS/TNRI.PFB) ;
> /Times-Roman (/usr/share/PSFONTS/TNR.PFB) ;
>
> However, it makes no difference when seeking to print a "PS" postscript
> file. The nimbus font is chosen
>
> What step am I missing to get Ghostscript to recognize the changes to the
> "Fontmap.GS" file.

I assume you changed the existing definitions of Times and not added
these lines to the front of the file.

What is displayed if you enter

/Times-Roman findfont

into Ghostscript?

Jeff

Re: Adding Fonts to Ghostscript

<jl2h8iFg0bgU1@mid.individual.net>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=633&group=alt.os.linux.suse#633

  copy link   Newsgroups: alt.os.linux.suse
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: pau...@foxinternet.net (Paul R Schmidtbleicher)
Newsgroups: alt.os.linux.suse
Subject: Re: Adding Fonts to Ghostscript
Date: 4 Aug 2022 18:25:23 GMT
Lines: 43
Message-ID: <jl2h8iFg0bgU1@mid.individual.net>
References: <jl0hjhF636mU1@mid.individual.net> <tcgpt3$2rj7u$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net 9N9aan2nUoBxAfxpwFPiUAMeFO3epoJ9LXLdHEcTVIjiQJF9Nz
Cancel-Lock: sha1:pEdyGPtwM7jIZngJU1BraC+hJbk=
User-Agent: Pan/0.151 (Butcha; a6f6327)
 by: Paul R Schmidtbleich - Thu, 4 Aug 2022 18:25 UTC

On Thu, 4 Aug 2022 08:50:57 -0700, Jeffrey H. Coffield wrote:

> On 8/3/22 17:18, Paul R Schmidtbleicher wrote:
>> In "/usr/share/ghostscript/9.54.0/Resource/Init/" are two Fontmap
>> files. One is "Fontmap" 109B(ytes) I assume The other is "Fontmap.GS"
>> which can be modified by utilities like "Kate"
>>
>> I modified "Fontmap.GS" for 4 "alias" fonts pointing to fonts in a
>> directory included.
>>
>> % Aliases
>>
>> /Times-BoldItalic (/usr/share/PSFONTS/TNRBI.PFB) ; /Times-
Bold
>> (/usr/share/PSFONTS/TNRB.PFB) ; /Times-Italic
>> (/usr/share/PSFONTS/TNRI.PFB) ; /Times-Roman
>> (/usr/share/PSFONTS/TNR.PFB) ;
>>
>> However, it makes no difference when seeking to print a "PS" postscript
>> file. The nimbus font is chosen
>>
>> What step am I missing to get Ghostscript to recognize the changes to
>> the "Fontmap.GS" file.
>
> I assume you changed the existing definitions of Times and not added
> these lines to the front of the file.
>
> What is displayed if you enter
>
> /Times-Roman findfont
>
> into Ghostscript?
>
> Jeff

This is what I get

GS>/Times-Roman findfont
Loading NimbusRoman-Regular font from /usr/share/ghostscript/9.54.0/
Resource/Font/NimbusRoman-Regular... 4481928 3126030 2005312 686036 1
done.

It still loads a wrong font.

Re: Adding Fonts to Ghostscript

<jl2kmmFgd0nU1@mid.individual.net>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=634&group=alt.os.linux.suse#634

  copy link   Newsgroups: alt.os.linux.suse
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: pau...@foxinternet.net (Paul R Schmidtbleicher)
Newsgroups: alt.os.linux.suse
Subject: Re: Adding Fonts to Ghostscript
Date: 4 Aug 2022 19:24:07 GMT
Lines: 65
Message-ID: <jl2kmmFgd0nU1@mid.individual.net>
References: <jl0hjhF636mU1@mid.individual.net> <tcgpt3$2rj7u$1@dont-email.me>
<jl2h8iFg0bgU1@mid.individual.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net TKQMis7Om7BdGzEZIaGoAgbrXKplTYzJsHE4mVYnlwV0wtSNQg
Cancel-Lock: sha1:ov1iOBW6gbEqgnOuJqf5h6c8Qb8=
User-Agent: Pan/0.151 (Butcha; a6f6327)
 by: Paul R Schmidtbleich - Thu, 4 Aug 2022 19:24 UTC

On 4 Aug 2022 18:25:23 GMT, Paul R Schmidtbleicher wrote:

> On Thu, 4 Aug 2022 08:50:57 -0700, Jeffrey H. Coffield wrote:
>
>> On 8/3/22 17:18, Paul R Schmidtbleicher wrote:
>>> In "/usr/share/ghostscript/9.54.0/Resource/Init/" are two Fontmap
>>> files. One is "Fontmap" 109B(ytes) I assume The other is "Fontmap.GS"
>>> which can be modified by utilities like "Kate"
>>>
>>> I modified "Fontmap.GS" for 4 "alias" fonts pointing to fonts in a
>>> directory included.
>>>
>>> % Aliases
>>>
>>> /Times-BoldItalic (/usr/share/PSFONTS/TNRBI.PFB) ; /Times-
> Bold
>>> (/usr/share/PSFONTS/TNRB.PFB) ; /Times-Italic
>>> (/usr/share/PSFONTS/TNRI.PFB) ; /Times-Roman
>>> (/usr/share/PSFONTS/TNR.PFB) ;
>>>
>>> However, it makes no difference when seeking to print a "PS"
>>> postscript file. The nimbus font is chosen
>>>
>>> What step am I missing to get Ghostscript to recognize the changes to
>>> the "Fontmap.GS" file.
>>
>> I assume you changed the existing definitions of Times and not added
>> these lines to the front of the file.
>>
>> What is displayed if you enter
>>
>> /Times-Roman findfont
>>
>> into Ghostscript?
>>
>> Jeff
>
> This is what I get
>
> GS>/Times-Roman findfont Loading NimbusRoman-Regular font from
> /usr/share/ghostscript/9.54.0/ Resource/Font/NimbusRoman-Regular...
> 4481928 3126030 2005312 686036 1 done.
>
> It still loads a wrong font.

My assumption was that editing the the Fontmap.GS file (as directed in the
file itself - which I accurately followed) would mean that GS would read
it at initialization and incorporate the changes. With me was
substituting for the "generic" nimbus fonts that GS uses with the right
fonts from the original application producing the postscript (*.ps) output
file. The (*.ps) postscript file output reads the two fonts used as
"Times-Roman" and "Times-Bold." GS substitutes (dotmatrix looking) nimbus
fonts.

Now, if I add "-c loadallfonts" to the command line it runs several
screens over 2-3 minutes of "loading cant find ....." BUT finally does get
to the right fonts. My goal was to circumvent this wasted activity and
get immediately to the right fonts and print it out.

Interestingly, GV Ghostview loads the right screen on my monitor with the
right fonts, but on printing (from GV) its back to the dot-matrix looking
nimbus fonts.

Thanks for any suggestions,
Paul

Re: Adding Fonts to Ghostscript

<tch720$2svn4$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=635&group=alt.os.linux.suse#635

  copy link   Newsgroups: alt.os.linux.suse
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: jeff...@digitalsynergyinc.com (Jeffrey H. Coffield)
Newsgroups: alt.os.linux.suse
Subject: Re: Adding Fonts to Ghostscript
Date: Thu, 4 Aug 2022 12:35:27 -0700
Organization: A noiseless patient Spider
Lines: 53
Message-ID: <tch720$2svn4$1@dont-email.me>
References: <jl0hjhF636mU1@mid.individual.net> <tcgpt3$2rj7u$1@dont-email.me>
<jl2h8iFg0bgU1@mid.individual.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 4 Aug 2022 19:35:28 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="b7a25c766d62e3f43d34e645eeb2bfe9";
logging-data="3047140"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/BaYhq5bkRBo0KH4trzYu+lGfHV6jMH6U="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.11.0
Cancel-Lock: sha1:i7ER7DN6sRNthscHQXFNbM1cDlU=
In-Reply-To: <jl2h8iFg0bgU1@mid.individual.net>
Content-Language: en-US
 by: Jeffrey H. Coffield - Thu, 4 Aug 2022 19:35 UTC

On 8/4/22 11:25, Paul R Schmidtbleicher wrote:
> On Thu, 4 Aug 2022 08:50:57 -0700, Jeffrey H. Coffield wrote:
>
>> On 8/3/22 17:18, Paul R Schmidtbleicher wrote:
>>> In "/usr/share/ghostscript/9.54.0/Resource/Init/" are two Fontmap
>>> files. One is "Fontmap" 109B(ytes) I assume The other is "Fontmap.GS"
>>> which can be modified by utilities like "Kate"
>>>
>>> I modified "Fontmap.GS" for 4 "alias" fonts pointing to fonts in a
>>> directory included.
>>>
>>> % Aliases
>>>
>>> /Times-BoldItalic (/usr/share/PSFONTS/TNRBI.PFB) ; /Times-
> Bold
>>> (/usr/share/PSFONTS/TNRB.PFB) ; /Times-Italic
>>> (/usr/share/PSFONTS/TNRI.PFB) ; /Times-Roman
>>> (/usr/share/PSFONTS/TNR.PFB) ;
>>>
>>> However, it makes no difference when seeking to print a "PS" postscript
>>> file. The nimbus font is chosen
>>>
>>> What step am I missing to get Ghostscript to recognize the changes to
>>> the "Fontmap.GS" file.
>>
>> I assume you changed the existing definitions of Times and not added
>> these lines to the front of the file.
>>
>> What is displayed if you enter
>>
>> /Times-Roman findfont
>>
>> into Ghostscript?
>>
>> Jeff
>
> This is what I get
>
> GS>/Times-Roman findfont
> Loading NimbusRoman-Regular font from /usr/share/ghostscript/9.54.0/
> Resource/Font/NimbusRoman-Regular... 4481928 3126030 2005312 686036 1
> done.
>
> It still loads a wrong font.

Just to confirm...

There isn't any definition of /Times-Roman in the Fontmap.GS AFTER the
lines you changed/added?

Jeff

Re: Adding Fonts to Ghostscript

<jl2mtpFgp32U1@mid.individual.net>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=636&group=alt.os.linux.suse#636

  copy link   Newsgroups: alt.os.linux.suse
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: pau...@foxinternet.net (Paul R Schmidtbleicher)
Newsgroups: alt.os.linux.suse
Subject: Re: Adding Fonts to Ghostscript
Date: 4 Aug 2022 20:02:01 GMT
Lines: 70
Message-ID: <jl2mtpFgp32U1@mid.individual.net>
References: <jl0hjhF636mU1@mid.individual.net> <tcgpt3$2rj7u$1@dont-email.me>
<jl2h8iFg0bgU1@mid.individual.net> <tch720$2svn4$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net pUgn14k0bJWBnPnTl7iM6goUv8AV6PzvOUhZwOXAnK5LFC/3nL
Cancel-Lock: sha1:hYmhx4xJlw1kAABDGe6gWKfn2L4=
User-Agent: Pan/0.151 (Butcha; a6f6327)
 by: Paul R Schmidtbleich - Thu, 4 Aug 2022 20:02 UTC

On Thu, 4 Aug 2022 12:35:27 -0700, Jeffrey H. Coffield wrote:

> On 8/4/22 11:25, Paul R Schmidtbleicher wrote:
>> On Thu, 4 Aug 2022 08:50:57 -0700, Jeffrey H. Coffield wrote:
>>
>>> On 8/3/22 17:18, Paul R Schmidtbleicher wrote:
>>>> In "/usr/share/ghostscript/9.54.0/Resource/Init/" are two Fontmap
>>>> files. One is "Fontmap" 109B(ytes) I assume The other is "Fontmap.GS"
>>>> which can be modified by utilities like "Kate"
>>>>
>>>> I modified "Fontmap.GS" for 4 "alias" fonts pointing to fonts in a
>>>> directory included.
>>>>
>>>> % Aliases
>>>>
>>>> /Times-BoldItalic (/usr/share/PSFONTS/TNRBI.PFB) ; /Times-
>> Bold
>>>> (/usr/share/PSFONTS/TNRB.PFB) ; /Times-Italic
>>>> (/usr/share/PSFONTS/TNRI.PFB) ; /Times-Roman
>>>> (/usr/share/PSFONTS/TNR.PFB) ;
>>>>
>>>> However, it makes no difference when seeking to print a "PS"
>>>> postscript file. The nimbus font is chosen
>>>>
>>>> What step am I missing to get Ghostscript to recognize the changes to
>>>> the "Fontmap.GS" file.
>>>
>>> I assume you changed the existing definitions of Times and not added
>>> these lines to the front of the file.
>>>
>>> What is displayed if you enter
>>>
>>> /Times-Roman findfont
>>>
>>> into Ghostscript?
>>>
>>> Jeff
>>
>> This is what I get
>>
>> GS>/Times-Roman findfont Loading NimbusRoman-Regular font from
>> /usr/share/ghostscript/9.54.0/ Resource/Font/NimbusRoman-Regular...
>> 4481928 3126030 2005312 686036 1 done.
>>
>> It still loads a wrong font.
>
> Just to confirm...
>
> There isn't any definition of /Times-Roman in the Fontmap.GS AFTER the
> lines you changed/added?
>
> Jeff

Before the original Alias "Times" fonts I put % at the beginning
of each line
I assumed this means it is taken as "text" like the instructions

I then rewrote the 4 lines
/Times-Roman (/usr/share/PSFONTS/TNR.PFB) ;
etc. for the other 3 "Times" fonts
as the instructions said.

Doing a "Find" on Fontmap.GS shows only the
blocked originals
% /Times-Roman ......
and my Changes
/Times-Roman (/usr/share/PSFONTS/TNR.PFB) ;

No other.
Paul

Re: Adding Fonts to Ghostscript

<tchal9$2tavj$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=637&group=alt.os.linux.suse#637

  copy link   Newsgroups: alt.os.linux.suse
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: jeff...@digitalsynergyinc.com (Jeffrey H. Coffield)
Newsgroups: alt.os.linux.suse
Subject: Re: Adding Fonts to Ghostscript
Date: Thu, 4 Aug 2022 13:36:55 -0700
Organization: A noiseless patient Spider
Lines: 88
Message-ID: <tchal9$2tavj$1@dont-email.me>
References: <jl0hjhF636mU1@mid.individual.net> <tcgpt3$2rj7u$1@dont-email.me>
<jl2h8iFg0bgU1@mid.individual.net> <tch720$2svn4$1@dont-email.me>
<jl2mtpFgp32U1@mid.individual.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 4 Aug 2022 20:36:57 -0000 (UTC)
Injection-Info: reader01.eternal-september.org; posting-host="b7a25c766d62e3f43d34e645eeb2bfe9";
logging-data="3058675"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/IxxmdpEqrfXjDo1hhAa6Ei2VsOOmCSJQ="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.11.0
Cancel-Lock: sha1:tMqSnGu2tXCJDjLcBx8YAIoG3jM=
In-Reply-To: <jl2mtpFgp32U1@mid.individual.net>
Content-Language: en-US
 by: Jeffrey H. Coffield - Thu, 4 Aug 2022 20:36 UTC

On 8/4/22 13:02, Paul R Schmidtbleicher wrote:
> On Thu, 4 Aug 2022 12:35:27 -0700, Jeffrey H. Coffield wrote:
>
>> On 8/4/22 11:25, Paul R Schmidtbleicher wrote:
>>> On Thu, 4 Aug 2022 08:50:57 -0700, Jeffrey H. Coffield wrote:
>>>
>>>> On 8/3/22 17:18, Paul R Schmidtbleicher wrote:
>>>>> In "/usr/share/ghostscript/9.54.0/Resource/Init/" are two Fontmap
>>>>> files. One is "Fontmap" 109B(ytes) I assume The other is "Fontmap.GS"
>>>>> which can be modified by utilities like "Kate"
>>>>>
>>>>> I modified "Fontmap.GS" for 4 "alias" fonts pointing to fonts in a
>>>>> directory included.
>>>>>
>>>>> % Aliases
>>>>>
>>>>> /Times-BoldItalic (/usr/share/PSFONTS/TNRBI.PFB) ; /Times-
>>> Bold
>>>>> (/usr/share/PSFONTS/TNRB.PFB) ; /Times-Italic
>>>>> (/usr/share/PSFONTS/TNRI.PFB) ; /Times-Roman
>>>>> (/usr/share/PSFONTS/TNR.PFB) ;
>>>>>
>>>>> However, it makes no difference when seeking to print a "PS"
>>>>> postscript file. The nimbus font is chosen
>>>>>
>>>>> What step am I missing to get Ghostscript to recognize the changes to
>>>>> the "Fontmap.GS" file.
>>>>
>>>> I assume you changed the existing definitions of Times and not added
>>>> these lines to the front of the file.
>>>>
>>>> What is displayed if you enter
>>>>
>>>> /Times-Roman findfont
>>>>
>>>> into Ghostscript?
>>>>
>>>> Jeff
>>>
>>> This is what I get
>>>
>>> GS>/Times-Roman findfont Loading NimbusRoman-Regular font from
>>> /usr/share/ghostscript/9.54.0/ Resource/Font/NimbusRoman-Regular...
>>> 4481928 3126030 2005312 686036 1 done.
>>>
>>> It still loads a wrong font.
>>
>> Just to confirm...
>>
>> There isn't any definition of /Times-Roman in the Fontmap.GS AFTER the
>> lines you changed/added?
>>
>> Jeff
>
> Before the original Alias "Times" fonts I put % at the beginning
> of each line
> I assumed this means it is taken as "text" like the instructions
>
> I then rewrote the 4 lines
> /Times-Roman (/usr/share/PSFONTS/TNR.PFB) ;
> etc. for the other 3 "Times" fonts
> as the instructions said.
>
> Doing a "Find" on Fontmap.GS shows only the
> blocked originals
> % /Times-Roman ......
> and my Changes
> /Times-Roman (/usr/share/PSFONTS/TNR.PFB) ;
>
> No other.
> Paul

Okay,

My next guess is that Times-Roman, being one of the 13 base fonts, is
loaded by default and the Fontmap.GS is only used when it needs a font
it doesn't already know about. This definition appears to be overridden
by the loadallfonts command.

What if you changed the name to /Times-RomanX? What happens then?

Probably not a final solution but a good test.

You could also try replacing the file Nimbus-Roman* files with your own.

Jeff

Re: Adding Fonts to Ghostscript

<jl314fFi73fU1@mid.individual.net>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=638&group=alt.os.linux.suse#638

  copy link   Newsgroups: alt.os.linux.suse
Path: i2pn2.org!i2pn.org!aioe.org!news.uzoreto.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: pau...@foxinternet.net (Paul R Schmidtbleicher)
Newsgroups: alt.os.linux.suse
Subject: Re: Adding Fonts to Ghostscript
Date: 4 Aug 2022 22:56:15 GMT
Lines: 117
Message-ID: <jl314fFi73fU1@mid.individual.net>
References: <jl0hjhF636mU1@mid.individual.net> <tcgpt3$2rj7u$1@dont-email.me>
<jl2h8iFg0bgU1@mid.individual.net> <tch720$2svn4$1@dont-email.me>
<jl2mtpFgp32U1@mid.individual.net> <tchal9$2tavj$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net QDhwYxAI0avAEAG2o87Vbg9N2gfP0yVa1HVgxAUp2SjVl6TE3m
Cancel-Lock: sha1:LCZ8EcBw8SfI5D/JlYsL9ihJKac=
User-Agent: Pan/0.151 (Butcha; a6f6327)
 by: Paul R Schmidtbleich - Thu, 4 Aug 2022 22:56 UTC

On Thu, 4 Aug 2022 13:36:55 -0700, Jeffrey H. Coffield wrote:

> On 8/4/22 13:02, Paul R Schmidtbleicher wrote:
>> On Thu, 4 Aug 2022 12:35:27 -0700, Jeffrey H. Coffield wrote:
>>
>>> On 8/4/22 11:25, Paul R Schmidtbleicher wrote:
>>>> On Thu, 4 Aug 2022 08:50:57 -0700, Jeffrey H. Coffield wrote:
>>>>
>>>>> On 8/3/22 17:18, Paul R Schmidtbleicher wrote:
>>>>>> In "/usr/share/ghostscript/9.54.0/Resource/Init/" are two Fontmap
>>>>>> files. One is "Fontmap" 109B(ytes) I assume The other is
>>>>>> "Fontmap.GS"
>>>>>> which can be modified by utilities like "Kate"
>>>>>>
>>>>>> I modified "Fontmap.GS" for 4 "alias" fonts pointing to fonts in a
>>>>>> directory included.
>>>>>>
>>>>>> % Aliases
>>>>>>
>>>>>> /Times-BoldItalic (/usr/share/PSFONTS/
TNRBI.PFB) ; /Times-
>>>> Bold
>>>>>> (/usr/share/PSFONTS/TNRB.PFB) ; /Times-Italic
>>>>>> (/usr/share/PSFONTS/TNRI.PFB) ; /Times-Roman
>>>>>> (/usr/share/PSFONTS/TNR.PFB) ;
>>>>>>
>>>>>> However, it makes no difference when seeking to print a "PS"
>>>>>> postscript file. The nimbus font is chosen
>>>>>>
>>>>>> What step am I missing to get Ghostscript to recognize the changes
>>>>>> to the "Fontmap.GS" file.
>>>>>
>>>>> I assume you changed the existing definitions of Times and not added
>>>>> these lines to the front of the file.
>>>>>
>>>>> What is displayed if you enter
>>>>>
>>>>> /Times-Roman findfont
>>>>>
>>>>> into Ghostscript?
>>>>>
>>>>> Jeff
>>>>
>>>> This is what I get
>>>>
>>>> GS>/Times-Roman findfont Loading NimbusRoman-Regular font from
>>>> /usr/share/ghostscript/9.54.0/ Resource/Font/NimbusRoman-Regular...
>>>> 4481928 3126030 2005312 686036 1 done.
>>>>
>>>> It still loads a wrong font.
>>>
>>> Just to confirm...
>>>
>>> There isn't any definition of /Times-Roman in the Fontmap.GS AFTER the
>>> lines you changed/added?
>>>
>>> Jeff
>>
>> Before the original Alias "Times" fonts I put % at the beginning
>> of each line
>> I assumed this means it is taken as "text" like the instructions
>>
>> I then rewrote the 4 lines /Times-Roman (/usr/share/PSFONTS/TNR.PFB) ;
>> etc. for the other 3 "Times" fonts as the instructions said.
>>
>> Doing a "Find" on Fontmap.GS shows only the
>> blocked originals
>> % /Times-Roman ......
>> and my Changes
>> /Times-Roman (/usr/share/PSFONTS/TNR.PFB) ;
>>
>> No other.
>> Paul
>
> Okay,
>
> My next guess is that Times-Roman, being one of the 13 base fonts, is
> loaded by default and the Fontmap.GS is only used when it needs a font
> it doesn't already know about. This definition appears to be overridden
> by the loadallfonts command.
>
> What if you changed the name to /Times-RomanX? What happens then?
>
> Probably not a final solution but a good test.
>
> You could also try replacing the file Nimbus-Roman* files with your own.
>
> Jeff

I have had some time to "play." Here is what I found:
1. The font always substituted is "NimbusMonoPS-Regular."
2. In the Fontmap.GS "Aliases" this is ONLY associated with "Courier"
Font.
3. I then made my new substitutions to "Courier" in a new (TEST)
Fontmap.GS file I called MyFontmap.GS and included in the command line "-
sFONTMAP=/usr/share/ghostscript/MyFontmap.GS
4. The command worked - GS read the MyFontmap.GS. It also reported Courier
was replaced by TimesNewRoman in the output. And the output was right!

5. Now, why, when I can read the Applications print output "file.ps" does
it read for every line "Times-Roman," while GS sees the Font as Currier???
6. My first guess is that there must be numbers being read and not the
text in the postscript file. (???) And since maybe old DOS numbers have
changed???
7. The application is an old DOS program I run under DOSBOX called
GeoWorks. It was GEOS for Commodore, Then GEOWORKS for PC. It will print
to a Postscript (Capable) Printer. I use this application weekly. First
under and OS/2 Ghostscript and now under OpenSuse Tumbleweed Ghostscript.

In any case, it looks like the modified MyFontmap.GS file is being read.
In my case, when I changed the /Times-Roman aliases which made no
difference when GC was interpreting a Courier font.

So thanks for the help, Jeff - Not sure where I go from here. (Maybe put
up with all the time and output that "loadallfonts" does)

Paul

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor