Charles Philip Chan <cpchan@sympatico.ca> さんは書きました:
On January 29, 2003 05:05 am, Mike FABIAN wrote:
Of course I tested whether the generated aliases work and apparently they work no matter whether they preceed or follow the "real" font entries.
Did you try it in Kword?
Yes, byt I didn't have the same fonts as you, I didn't have clsgaran.ttf.
No, I am talking about actual fontmap entries generated both by the kwdfont script and your script. Here is an example:
%---------------------------------------------------------------------- % postscript: "ClassicalGaramondBT-Roman" family: "ClassGarmnd BT" style: "Roman" /ClassicalGaramondBT-Roman (/usr/X11R6/lib/X11/fonts/truetype/clsgaran.ttf) ; /ClassGarmndBT-Roman /ClassicalGaramondBT-Roman ; %----------------------------------------------------------------------
The above is generated by your script. As you can see the alias is ClassGarmndBT-Roman which does not work. The actual font alias can be seen when one generate a postscipt file from Kword which is ClassGarmndBT. This applies to all alias with the -Roman suffix.
I got the Bitstream Vera fonts today and could reproduce the problem with the Bitstream Vera Sans. I changed "fonts-config" now to add an extra alias without "-Roman". For the Bitstream Vera Sans the generated entry now looks like %---------------------------------------------------------------------- % postscript: "BitstreamVeraSans-Roman" family: "Bitstream Vera Sans" style: "Roman" /BitstreamVeraSans-Roman (/usr/X11R6/lib/X11/fonts/Vera/tt2001gn.ttf) ; /BitstreamVeraSans /BitstreamVeraSans-Roman ; %---------------------------------------------------------------------- which works and for your Classical Garamond it will generate: %---------------------------------------------------------------------- % postscript: "ClassicalGaramondBT-Roman" family: "ClassGarmnd BT" style: "Roman" /ClassicalGaramondBT-Roman (/usr/X11R6/lib/X11/fonts/truetype/clsgaran.ttf) ; /ClassGarmndBT /ClassicalGaramondBT-Roman ; /ClassGarmndBT-Roman /ClassicalGaramondBT-Roman ; %---------------------------------------------------------------------- For the Bitstream Vera there is one entry less because /BitstreamVeraSans-Roman /BitstreamVeraSans-Roman ; would of course make no sense, whereas /ClassGarmndBT-Roman /ClassicalGaramondBT-Roman ; is not used by the PostScript file generated by KWord but it doesn't hurt and looks reasonable. New scripts at the same place: http://www.suse.de/~mfabian/misc/SuSEconfig.fonts/SuSEconfig.fonts http://www.suse.de/~mfabian/misc/SuSEconfig.fonts/fonts-config http://www.suse.de/~mfabian/misc/SuSEconfig.fonts/fonts-config.1.gz -- Mike Fabian <mfabian@suse.de> http://www.suse.de/~mfabian 睡眠不足はいい仕事の敵だ。