Charles Philip Chan <cpchan@sympatico.ca> さんは書きました:
On January 28, 2003 01:09 pm, Mike FABIAN wrote:
I added the automatic generation of a few reasonable aliases.
I just tried out your new scripts, nice... However, there are two problems:
(1) The Alias must preceed the font mapping (this is in the FAQ)
Although this is written in http://www.koffice.org/faq/ in section "6.1.", I don't think it is true. Look at /usr/share/ghostscript/7.05/lib/Fontmap.GS for example In that file most aliases follow the original entries for the fonts and it always worked like that. Of course I tested whether the generated aliases work and apparently they work no matter whether they preceed or follow the "real" font entries.
(2) I found out the hard way that all references to -Roman should be taken out for the fonts to work.
Example? Do you mean aliases like /ArialBlack-Roman /Arial_Black ; in http://www.koffice.org/faq/? My script doesn't generate that alias, for the "Arial-Black" font it only generates: %---------------------------------------------------------------------- % postscript: "Arial-Black" family: "Arial Black" style: "Regular" /Arial-Black (/usr/X11R6/lib/X11/fonts/truetype/ariblk.ttf) ; /ArialBlack /Arial-Black ; /ArialBlack-Regular /Arial-Black ; %---------------------------------------------------------------------- i.e. in addition to the entry using the "real" PostScript name of the font, an alias /$family-$style /$postscript ; is created with all spaces from $family and $style removed. If $style happens to be "Regular" or is empty, an additional alias of the form /$family /$postscript ; is generated. Where's the problem? -- Mike Fabian <mfabian@suse.de> http://www.suse.de/~mfabian 睡眠不足はいい仕事の敵だ。