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

changig fonts used by gs (was: Bug#302035: cm-super for Debian, problems with tetex)



Frank Küster wrote:
> Ralf Stubner <ralf.stubner@physik.uni-erlangen.de> wrote:
> 
> [first part snipped with ACK]

Ok, then this discussion probably no longer belongs to #302035.

>> I think the comment in /etc/gs-gpl/Fontmap are to obvious for that:
>>
>> %!
>> % See Fontmap.GS for the syntax of real Fontmap files
>> (Fontmap.GS) .runlibfile
>>
>> So something like 'Why isn't Fontmap.GS a configfile?' 
> 
> That looks to me as if Fontmap.GS is a default setup file that is loaded
> if nothing else is done in /etc/gs-gpl/Fontmap, but you can also remove
> this call and instead configure all by hand, doesn't it?  So from a
> policy point of view everything is okay.  Or not, since it seems that
> there is no separate Fontmap for the other gs applications, but separate
> Fontmap.GS files.  Don't the other packages have a configuration file?
> 
> No, they haven't - gs-gpl's  /usr/share/gs-gpl/8.01/lib/Fontmap is a
> symlink to /etc/gs-gpl/Fontmap, but gs-esp's analogon is not.
> 
>> together with
>> 'Why does Fontmap.GS contain fonts that are not supplied by gsfonts?'
>> would be more appropriate. 
> 
> Indeed.  Also, it refers to a file "fonts.doc" which is not included in
> the binary package.  Do you know whether earlier entries take
> precedence, or later overwrite earlier ones?

Ok, so I have made a few tests. In principle, gs should be configured
via defoma, ie, /var/lib/defoma/gs.d/dirs/fonts/Fontmap. However,
/usr/share/gs-gpl/8.01/lib/Fontmap.GS is loaded before that, and any
configuration made there cannot be overwritten later on. IMO this is a
bug in the gs packages, they should not provide any Fontmap at all and
use only defoma for this. I shall report that.

Anyway, for gs-gpl 8.01 one can change this in /etc/gs-gpl/Fontmap.
Simply comment out the line that loads Fontmap.GS. Next I enabled the
attached tex-lw35.hints file via

# defoma-font register-all tex-lw35.hints

This file registers the original URW fonts as provided by tetex-extra
under their PostScript names. Since the gsfonts package registers these
 only as aliases, the 'real' fonts are prefered. So now, eg, Helvetica
is no longer an alias to NimbusSanL, which is still the font provided by
gsfonts, but directly mapped to the NimbusSanL provided by tetex-extra.
So a PS file using NimbusSanL without embedding it will still get the
font from gsfonts. A PS file using Helvetica will get the font from
tetex-extra.

This is interesting as the fonts provided by gsfonts have a few bugs.
See the attached lw35.tex. Processing it with pdflatex gives the
reference, since this uses the fonts from tetex-extra, at least if
pdftexDownloadBase14 is set to 'true'. Processing it with latex & dvips
gives a PS file, where each of the used fonts shows some problems when
viewed using the fonts from gsfonts. With the above mentioned changes
(deactivating Fontmap.GS and registering tex-lw35.hints), the fonts from
tetex-extra are used and the PS file looks fine, too. (It is a good idea
to test this first directly with gs instead of gv, as that prints out
the fonts loaded.)

What do you think? I have *not* yet tested this for any unwanted side
effects. And I am not sure, if it would be a good idea to make something
like this automatically. But providing tex-lw35.hints plus documentation
 (and warnings?) might help some users.

cheerio
ralf


category type1
begin /usr/share/texmf/fonts/type1/urw/avantgar/uagd8a.pfb
  AFM = /usr/share/texmf/fonts/afm/urw/avantgar/uagd8a.afm
  FontName = AvantGarde-Demi
  Charset = ISO8859-1
  Family = AvantGarde
  GeneralFamily = Roman
  Weight = Demi
  Width = Variable
  Shape = Normal Upright
  Priority = 20
end
begin /usr/share/texmf/fonts/type1/urw/avantgar/uagdo8a.pfb
  AFM = /usr/share/texmf/fonts/afm/urw/avantgar/uagdo8a.afm
  FontName = AvantGarde-DemiOblique
  Charset = ISO8859-1
  Family = AvantGarde
  GeneralFamily = Roman
  Weight = Demi
  Width = Variable
  Shape = Normal Oblique
  Priority = 20
end
begin /usr/share/texmf/fonts/type1/urw/avantgar/uagk8a.pfb
  AFM = /usr/share/texmf/fonts/afm/urw/avantgar/uagk8a.afm
  FontName = AvantGarde-Book
  Charset = ISO8859-1
  Family = AvantGarde
  GeneralFamily = Roman
  Weight = Book
  Width = Variable
  Shape = Normal Upright
  Priority = 20
end
begin /usr/share/texmf/fonts/type1/urw/avantgar/uagko8a.pfb
  AFM = /usr/share/texmf/fonts/afm/urw/avantgar/uagko8a.afm
  FontName = AvantGarde-BookOblique
  Charset = ISO8859-1
  Family = AvantGarde
  GeneralFamily = Roman
  Weight = Book
  Width = Variable
  Shape = Normal Oblique
  Priority = 20
end
begin /usr/share/texmf/fonts/type1/urw/bookman/ubkd8a.pfb
  AFM = /usr/share/texmf/fonts/afm/urw/bookman/ubkd8a.afm
  FontName = Bookman-Demi
  Charset = ISO8859-1
  Family = Bookman
  GeneralFamily = Roman
  Weight = Bold
  Width = Variable
  Shape = Normal Upright
  Priority = 20
end
begin /usr/share/texmf/fonts/type1/urw/bookman/ubkdi8a.pfb
  AFM = /usr/share/texmf/fonts/afm/urw/bookman/ubkdi8a.afm
  FontName = Bookman-DemiItalic
  Charset = ISO8859-1
  Family = Bookman
  GeneralFamily = Roman
  Weight = Bold
  Width = Variable
  Shape = Normal Italic
  Priority = 20
end
begin /usr/share/texmf/fonts/type1/urw/bookman/ubkl8a.pfb
  AFM = /usr/share/texmf/fonts/afm/urw/bookman/ubkl8a.afm
  FontName = Bookman-Light
  Charset = ISO8859-1
  Family = Bookman
  GeneralFamily = Roman
  Weight = Regular
  Width = Variable
  Shape = Normal Upright
  Priority = 20
end
begin /usr/share/texmf/fonts/type1/urw/bookman/ubkli8a.pfb
  AFM = /usr/share/texmf/fonts/afm/urw/bookman/ubkli8a.afm
  FontName = Bookman-LighItalic
  Charset = ISO8859-1
  Family = Bookman
  GeneralFamily = Roman
  Weight = Regular
  Width = Variable
  Shape = Normal Italic
  Priority = 20
end
begin /usr/share/texmf/fonts/type1/urw/courier/ucrb8a.pfb
  AFM = /usr/share/texmf/fonts/afm/urw/courier/ucrb8a.afm
  FontName = Courier-Bold
  Charset = ISO8859-1
  Family = Courier
  GeneralFamily = Roman
  Weight = Bold
  Width = Fixed
  Shape = Normal Upright
  Priority = 20
end
begin /usr/share/texmf/fonts/type1/urw/courier/ucrbo8a.pfb
  AFM = /usr/share/texmf/fonts/afm/urw/courier/ucrbo8a.afm
  FontName = Courier-BoldOblique
  Charset = ISO8859-1
  Family = Courier
  GeneralFamily = Roman
  Weight = Bold
  Width = Fixed
  Shape = Normal Oblique
  Priority = 20
end
begin /usr/share/texmf/fonts/type1/urw/courier/ucrr8a.pfb
  AFM = /usr/share/texmf/fonts/afm/urw/courier/ucrr8a.afm
  FontName = Courier
  Charset = ISO8859-1
  Family = Courier
  GeneralFamily = Roman
  Weight = Regular
  Width = Fixed
  Shape = Normal Upright
  Priority = 20
end
begin /usr/share/texmf/fonts/type1/urw/courier/ucrro8a.pfb
  AFM = /usr/share/texmf/fonts/afm/urw/courier/ucrro8a.afm
  FontName = Courier-Oblique
  Charset = ISO8859-1
  Family = Courier
  GeneralFamily = Roman
  Weight = Regular
  Width = Fixed
  Shape = Normal Oblique
  Priority = 20
end
begin /usr/share/texmf/fonts/type1/urw/helvetic/uhvb8ac.pfb
  AFM = /usr/share/texmf/fonts/afm/urw/helvetic/uhvb8ac.afm
  FontName = Helvetica-Narrow-Bold
  Charset = ISO8859-1
  Family = Helvetica
  GeneralFamily = Roman
  Weight = Bold
  Width = Variable
  Shape = Normal Upright
  Priority = 20
end
begin /usr/share/texmf/fonts/type1/urw/helvetic/uhvb8a.pfb
  AFM = /usr/share/texmf/fonts/afm/urw/helvetic/uhvb8a.afm
  FontName = Helvetica-Bold
  Charset = ISO8859-1
  Family = Helvetica
  GeneralFamily = Roman
  Weight = Bold
  Width = Variable
  Shape = Normal Upright
  Priority = 20
end
begin /usr/share/texmf/fonts/type1/urw/helvetic/uhvbo8ac.pfb
  AFM = /usr/share/texmf/fonts/afm/urw/helvetic/uhvbo8ac.afm
  FontName = Helvetica-Narrow-BoldOblique
  Charset = ISO8859-1
  Family = Helvetica
  GeneralFamily = Roman
  Weight = Bold
  Width = Variable
  Shape = Normal Italic
  Priority = 20
end
begin /usr/share/texmf/fonts/type1/urw/helvetic/uhvbo8a.pfb
  AFM = /usr/share/texmf/fonts/afm/urw/helvetic/uhvbo8a.afm
  FontName = Helvetica-BoldOblique
  Charset = ISO8859-1
  Family = Helvetica
  GeneralFamily = Roman
  Weight = Bold
  Width = Variable
  Shape = Normal Italic
  Priority = 20
end
begin /usr/share/texmf/fonts/type1/urw/helvetic/uhvr8ac.pfb
  AFM = /usr/share/texmf/fonts/afm/urw/helvetic/uhvr8ac.afm
  FontName = Helvetica-Narrow
  Charset = ISO8859-1
  Family = Helvetica
  GeneralFamily = Roman
  Weight = Regular
  Width = Variable
  Shape = Normal Upright
  Priority = 20
end
begin /usr/share/texmf/fonts/type1/urw/helvetic/uhvr8a.pfb
  AFM = /usr/share/texmf/fonts/afm/urw/helvetic/uhvr8a.afm
  FontName = Helvetica
  Charset = ISO8859-1
  Family = Helvetica
  GeneralFamily = Roman
  Weight = Regular
  Width = Variable
  Shape = Normal Upright
  Priority = 20
end
begin /usr/share/texmf/fonts/type1/urw/helvetic/uhvro8ac.pfb
  AFM = /usr/share/texmf/fonts/afm/urw/helvetic/uhvro8ac.afm
  FontName = Helvetica-Narrow-Oblique
  Charset = ISO8859-1
  Family = Helvetica
  GeneralFamily = Roman
  Weight = Regular
  Width = Variable
  Shape = Normal Italic
  Priority = 20
end
begin /usr/share/texmf/fonts/type1/urw/helvetic/uhvro8a.pfb
  AFM = /usr/share/texmf/fonts/afm/urw/helvetic/uhvro8a.afm
  FontName = Helvetica-Oblique
  Charset = ISO8859-1
  Family = Helvetica
  GeneralFamily = Roman
  Weight = Regular
  Width = Variable
  Shape = Normal Italic
  Priority = 20
end
begin /usr/share/texmf/fonts/type1/urw/ncntrsbk/uncb8a.pfb
  AFM = /usr/share/texmf/fonts/afm/urw/ncntrsbk/uncb8a.afm
  FontName = NewCenturySchlbk-Bold
  Charset = ISO8859-1
  Family = New_Century_Schoolbook
  GeneralFamily = Roman
  Weight = Bold
  Width = Variable
  Shape = Normal Upright
  Priority = 20
end
begin /usr/share/texmf/fonts/type1/urw/ncntrsbk/uncbi8a.pfb
  AFM = /usr/share/texmf/fonts/afm/urw/ncntrsbk/uncbi8a.afm
  FontName = NewCenturySchlbk-BoldItalic
  Charset = ISO8859-1
  Family = New_Century_Schoolbook
  GeneralFamily = Roman
  Weight = Bold
  Width = Variable
  Shape = Normal Italic
  Priority = 20
end
begin /usr/share/texmf/fonts/type1/urw/ncntrsbk/uncr8a.pfb
  AFM = /usr/share/texmf/fonts/afm/urw/ncntrsbk/uncr8a.afm
  FontName = NewCenturySchlbk-Roman
  Charset = ISO8859-1
  Family = New_Century_Schoolbook
  GeneralFamily = Roman
  Weight = Roman
  Width = Variable
  Shape = Normal Upright
  Priority = 20
end
begin /usr/share/texmf/fonts/type1/urw/ncntrsbk/uncri8a.pfb
  AFM = /usr/share/texmf/fonts/afm/urw/ncntrsbk/uncri8a.afm
  FontName = NewCenturySchlbk-Italic
  Charset = ISO8859-1
  Family = New_Century_Schoolbook
  GeneralFamily = Roman
  Weight = Regular
  Width = Variable
  Shape = Normal Italic
  Priority = 20
end
begin /usr/share/texmf/fonts/type1/urw/palatino/uplb8a.pfb
  AFM = /usr/share/texmf/fonts/afm/urw/palatino/uplb8a.afm
  FontName = Palatino-Bold
  Charset = ISO8859-1
  Family = Palatino
  GeneralFamily = Roman
  Weight = Bold
  Width = Variable
  Shape = Normal Upright
  Priority = 20
end
begin /usr/share/texmf/fonts/type1/urw/palatino/uplbi8a.pfb
  AFM = /usr/share/texmf/fonts/afm/urw/palatino/uplbi8a.afm
  FontName = Palatino-BoldItalic
  Charset = ISO8859-1
  Family = Palatino
  GeneralFamily = Roman
  Weight = Bold
  Width = Variable
  Shape = Normal Italic
  Priority = 20
end
begin /usr/share/texmf/fonts/type1/urw/palatino/uplr8a.pfb
  AFM = /usr/share/texmf/fonts/afm/urw/palatino/uplr8a.afm
  FontName = Palatino-Roman
  Charset = ISO8859-1
  Family = Palatino
  GeneralFamily = Roman
  Weight = Roman
  Width = Variable
  Shape = Normal Upright
  Priority = 20
end
begin /usr/share/texmf/fonts/type1/urw/palatino/uplri8a.pfb
  AFM = /usr/share/texmf/fonts/afm/urw/palatino/uplri8a.afm
  FontName = Palatino-Italic
  Charset = ISO8859-1
  Family = Palatino
  GeneralFamily = Roman
  Weight = Regular
  Width = Variable
  Shape = Normal Italic
  Priority = 20
end
begin /usr/share/texmf/fonts/type1/urw/symbol/usyr.pfb
  AFM = /usr/share/texmf/fonts/afm/urw/symbol/usyr.afm
  FontName = Symbol
  Charset = font-specific
  Family = Symbol
  GeneralFamily = Roman
  Weight = Regular
  Width = Variable
  Shape = Normal Upright
  Priority = 20
end
begin /usr/share/texmf/fonts/type1/urw/times/utmb8a.pfb
  AFM = /usr/share/texmf/fonts/afm/urw/times/utmb8a.afm
  FontName = Times-Bold
  Charset = ISO8859-1
  Family = Times
  GeneralFamily = Roman
  Weight = Bold
  Width = Variable
  Shape = Normal Upright
  Priority = 20
end
begin /usr/share/texmf/fonts/type1/urw/times/utmbi8a.pfb
  AFM = /usr/share/texmf/fonts/afm/urw/times/utmbi8a.afm
  FontName = Times-BoldItalic
  Charset = ISO8859-1
  Family = Times
  GeneralFamily = Roman
  Weight = Bold
  Width = Variable
  Shape = Normal Italic
  Priority = 20
end
begin /usr/share/texmf/fonts/type1/urw/times/utmr8a.pfb
  AFM = /usr/share/texmf/fonts/afm/urw/times/utmr8a.afm
  FontName = Times-Roman
  Charset = ISO8859-1
  Family = Times
  GeneralFamily = Roman
  Weight = Regular
  Width = Variable
  Shape = Normal Upright
  Priority = 20
end
begin /usr/share/texmf/fonts/type1/urw/times/utmri8a.pfb
  AFM = /usr/share/texmf/fonts/afm/urw/times/utmri8a.afm
  FontName = Times-Italic
  Charset = ISO8859-1
  Family = Times
  GeneralFamily = Roman
  Weight = Regular
  Width = Variable
  Shape = Normal Italic
  Priority = 20
end
begin /usr/share/texmf/fonts/type1/urw/zapfchan/uzcmi8a.pfb
  AFM = /usr/share/texmf/fonts/afm/urw/zapfchan/uzcmi8a.afm
  FontName = ZapfChancery-MediumItalic
  Charset = ISO8859-1
  Family = Zapf_Chancery
  GeneralFamily = Roman
  Weight = Medium
  Width = Variable
  Shape = Normal Italic
  Priority = 20
end
begin /usr/share/texmf/fonts/type1/urw/zapfding/uzdr.pfb
  AFM = /usr/share/texmf/fonts/afm/urw/zapfding/uzdr.afm
  FontName = ZapfDingbats
  Charset = font-specific
  Family = Zapf_Dingbats
  GeneralFamily = Roman
  Weight = Regular
  Width = Variable
  Shape = Normal Upright
  Priority = 20
end
\documentclass{article}

\begin{document}
\fontfamily{pcr}\selectfont host=`hostname --fqdn`

\fontfamily{phv}\selectfont Gr\"u\ss e
\Large
\fontfamily{pzc}\selectfont aus Erlangen

\end{document}

%%% Local Variables: 
%%% mode: latex
%%% TeX-master: t
%%% End: 

Reply to: