home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   alt.os.linux.suse      Suse is actually not that bad      138,051 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 137,571 of 138,051   
   Paul R Schmidtbleicher to Paul R Schmidtbleicher   
   Re: Adding Fonts to Ghostscript   
   04 Aug 22 19:24:07   
   
   From: paulrs@foxinternet.net   
      
   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   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca