Here are step-by-step instructions for adding a PostScript font to
MiKTeX so that both dvips and yap (MiKTeX's .dvi viewer) can render the
font properly. (Note that I am assuming you already have the correct .tfm file
for the font and that you can compile your TeX file without errors.)
You will need the following files
- PFB: Adobe Type 1 font (.pfb)
- AFM: font metric file (.afm)
- TFM: TeX font metric file (.tfm)
- A
.map file which tells dvips how to
embed the font
- PFM: PostScript Font Metrics file (.pfm) (OPTIONAL)
Note that dvips does not need the AFM file, but yap needs
both the PFB and AFM files. The PFM file is not used by the MiKTeX
system, but is necessary if you want other Windows applications (such
as Adobe Photoshop or Microsoft Word) to see the font.
- Let's assume that the Type 1 font is contained in the file
myfont.pfb , the Adobe font metric file in
myfont.afm ,
and the TFM file in myfont.tfm .
- Copy the Type 1 font to a subdirectory of MiKTeX's Type 1 font
directory, usually
C:\texmf\fonts\type1 . If there is not
already a subdirectory suitable for this font, create a new one.
- Copy the Adobe font metric file
myfont.afm
to a subdirectory of MiKTeX's afm font directory,
usually C:\texmf\fonts\afm .
If there is not already a subdirectory suitable for this font, create
a new one.
- Copy the
.map to
the dvips configuration directory with the other .map
files. There is usually a subdirectory of C:\texmf\dvips
for each font (for example, the .map files for the
Bluesky Type 1 fonts are in C:\texmf\dvips\bluesky ).
- Edit the dvips configuration file, usually
c:\texmf\dvips\config\config.ps and add the line
p +myfont.map
- Edit the file
updmap.cfg file which is usually
in c:\texmf\miktex\config and add the line
Map myfont.map
- From the command line run
initexmf --mkmaps
- Open the MikTeX Options GUI interface and choose the "General"
tab. Click on the "Refresh Now" button in the "File name database"
section.
- You should now be able to view the font in both yap and dvips.
|