[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: GS, fonts, type1inst, dtm & Co.



On Thu, 19 Mar 1998, Federico Di Gregorio wrote:
> Uh! Can you tell me ore about that. I thought you need one Fontmap
> for every dir containing fonts. If you can use just *one* fontmap in
> etc just put it there, even without links to /usr/lib/gs/...
> BTW, that will help *a lot* dtm too.
> 
> Ciao,

One global Fontmap file is sufficient[1]. An entry of the Fontmap file
has either the form
  /Alias /FontName ;
or the form
  /FontName (file) ;
In this second case, if GS needs font "FontName", it searches "file":
"file" can be an absolute path (if it starts with "/"), a path relative
to PWD (if it starts with ".") or a path relative to the search path of 
GS (otherwise). So, if the Fontmap file looks like

/NimbusSansL-Regu (n019003l.pfb) ;
/Acrobat-Times-Roman (/usr/lib/acrobat/Fonts/Times-Roman) ;
/University-Logo (local/logo.pfb) ;

and the search path is
.:/usr/lib/ghostscript/5.10:/usr/lib/ghostscript/fonts,
GS looks at files  
 ./n019003l.pfb, /usr/lib/ghostscript/5.10/n019003l.pfb,
 /usr/lib/ghostscript/fonts/n019003l.pfb
for font NimbusSansL-Regu, at file
 /usr/lib/acrobat/Fonts/Times-Roman
for font Acrobat-Times-Roman
and at
 ./local/logo.pfb, /usr/lib/ghostscript/5.10/local/logo.pfb,
 /usr/lib/ghostscript/fonts/local/logo.pfb
for font University-Logo.

For GS to access to the Fontmap file, however, this has to be in
GS's serach path (or gs has to be patched, which is really not a problem).
The best solution, for the moment seems to me an unique fontmap file
in /etc/gs.Fontmap and a link to it from one of the gs directories
(for instance, /usr/lib/ghostscript/fonts/Fontmap). 

Otherwise, we can decide to leave the fontmap file in /usr/lib/... for the
moment, and to decide where to put it when dtm is ready. In this case,
however, a sysadmin has to modify a non-conffile if she wants
to install local fonts (for instance by using font1inst).

Ciao,

Marco

[1] You can put more Fontmap files in the different directories of the
search path of GS; in this case, essenctially, GS concatenates all those
files.  In my opinion, however, a single file is preferable (in particular
if it is controlled by a font manager). 






--
To UNSUBSCRIBE, email to debian-devel-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org


Reply to: