Go to page:

Search:   Help



LyX documentation


Shared groups



<< | Page list | >>

How to install a Postscript Type 1 font in MikTeX

These instructions were tested with MikTeX 2.5 for Windows XP. They should be generalizable to other systems, except for the last step.

  1. Rename the PFB and AFM files using the tables in "C:\Program Files\MikTeX 2.5\fontname". The new filename should take the form "xyz[rb][io]". Put the renamed PFB and AFM files into a temporary working directory. The INF and PFM files aren't necessary.
  2. Make a file called fontinst.tex in the working directory. Enter the contents below, replacing "xyz", and run "tex fontinst"

       \input fontinst.sty
  3. Generate additional files from the command line:

       for %i in (*.pl) do pltotf %i %~ni.tfm
       for %i in (*.vpl) do vptovf %i %~ni.vf %~ni.tfm
  4. Make the directories below and put the files in their place. Note that the default LOCALTEXMF is "C:\Documents and Settings\username\Local Settings\Application Data\MiKTeX\2.5".

       copy *.afm LOCALTEXMF\fonts\afm\foundry\fontname\
       copy *.tfm LOCALTEXMF\fonts\tfm\foundry\fontname\
       copy *.pfb LOCALTEXMF\fonts\type1\foundry\fontname\
       copy *.vf LOCALTEXMF\fonts\vf\foundry\fontname\
       copy *.fd LOCALTEXMF\tex\latex\foundry\fontname\
  5. Create makemap.tex in the directory holding the original copies and enter

       \input finstmsc.sty
       \input xyz-rec.tex

    Then run "tex makemap".
  6. Put the map file into LOCALTEXMF\dvips\config (old standard location) and/or LOCALTEXMF\dvips\fontinst\foundry (new location).
  7. Run "initexmf --edit-config-file updmap" and add this line to the text file that opens:

       Map xyz.map
  8. Create a package to make it east to use the new font. Make a file called <FontName>.sty in LOCALTEXMF\tex\latex\foundry\fontname\ containing

       \ProvidesPackage{<FontName>}[YYYY/MM/DD v1.0 Description]
       \RequirePackage[T1][fontenc] % may be unnecessary
       \RequirePackage{textcomp} % gives access to special symbols
       % \renewcommand*{\sfdefault}{xyz} % for sans serif
       % \renewcommand*{\ttdefault}{xyz} % for monospaced
  9. Run "initexmf -u" to update the filename database.
  10. Run "initexmf --mkmaps" to configure pdftex, dvips, and dvipdfm to use the new fonts.

To use the font in LyX, add \usepackage{<FontName>} to the LaTeX preamble in the Document Settings dialog.

An example using the new font

    \usepackage{<FontName>} % substitute the name of your font
    The five boxing wizards jump quickly.


http://ctan.org/tex-archive/info/Type1fonts/fontinstallationguide/fontinstallationguide.pdf http://www.tex.ac.uk/cgi-bin/texfaq2html?label=instt1font http://www.mamster.net/tex/latex-fontfaq-amster-burton.pdf

Type 1 Fonts MiKTeX Windows Fonts

Edit - History - Print - Recent Changes - All Recent Changes - Search
Page last modified on 2007-01-26 07:26 CET