|
|
Tgif FAQ - Add the Free FF Dingbests Font
|
I've downloaded the free
Dingbests font (Windows PostScript) from
FontFont.
Can tgif use it?
|
-
Sure! First of all, make sure you've downloaded the Windows
PostScript version of the font (the file name is wint1.zip).
Please try the following.
- Unzip the zip file:
unzip wint1.zip
You should get:
dingbest.AFM
dingbest.pfb
dingbest.INF
dingbest.PFM
- If you don't have your own X11 fonts directory, create something
like:
~/lib/X11/fonts/
Then do:
cp dingbest.pfb ~/lib/X11/fonts/
xset fp+ ~/lib/X11/fonts/
If you already have your own X11 fonts directory (look for the
Font Path entry when you do xset -q), just copy the
dingbest.pfb file into it.
Append the following line into the fonts.dir file in
yoru X11 fonts directory:
-
dingbest.pfb -ff-ff dingbests-
medium-r-normal--0-0-0-0-p-0-adobe-fontspecific
(Please note that the above should be in a single line with no space
between the last - character in the first line and the
medium in the second line.)
Increment the number in the first line of the fonts.dir file.
- Add the following X default:
Tgif.AdditionalFonts: \n\
ff dingbests-medium-r-normal,adobe-fontspecific,FFDingbests\n\
ff dingbests-medium-r-normal,adobe-fontspecific,FFDingbests\n\
ff dingbests-medium-r-normal,adobe-fontspecific,FFDingbests\n\
ff dingbests-medium-r-normal,adobe-fontspecific,FFDingbests
-
At this point, tgif should be able to use the FF Dingbests font.
However, there's still a problem. When you generate a PostScript
file with FF Dingbests text, the PostScript file doesn't look right
in ghostscript. This is because your ghostscript doesn't know
about the FFDingbests font, yet. Please try the following.
- If you don't have your own ghostscript directory, create something
like:
~/lib/ghostscript/fonts/
Then do:
cp dingbest.AFM ~/lib/ghostscript/fonts/dingbest.afm
cp dingbest.pfb ~/lib/ghostscript/fonts/dingbest.pfb
cp dingbest.PFM ~/lib/ghostscript/fonts/dingbest.pfm
-
Create ~/lib/ghostscript/fonts/Fontmap with the following
line in it:
/FFDingbests (dingbest.pfb) ;
(The space above should be <TAB> characters, but I'm not sure if
that matters.)
- Do the following in csh (and add it to your ~/.cshrc) or something
equivalent if you use another shell.
setenv GS_FONTPATH ~/lib/ghostscript/fonts
-
Now you should be able to view the PostScript file with ghostscript
or ghostview.
|
|