MacroTeXTechnical Typesetting and Book Production
Home What we do Support Samples Contacts

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.

  1. 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.
  2. 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.
  3. 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.
  4. 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).
  5. Edit the dvips configuration file, usually c:\texmf\dvips\config\config.ps and add the line
    p +myfont.map
    
  6. Edit the file updmap.cfg file which is usually in c:\texmf\miktex\config and add the line
    Map myfont.map
    
  7. From the command line run
    initexmf --mkmaps
    
  8. Open the MikTeX Options GUI interface and choose the "General" tab. Click on the "Refresh Now" button in the "File name database" section.
  9. You should now be able to view the font in both yap and dvips.
Home What we do Support Samples Contacts
Copyright 1999, 2001-2004 Macrotex Services. Check that this is valid XHTML 1.0  valid xhtml 1.0 logo