January 13th, 2006
Use Macintosh PostScript Type1 fonts in LaTex
For a professional designed letter template I wanted to adapt the LaTex letter font to the font that is used by the template design. The designer of the letter template used the Univers font, that comes with the Macintosh operating system, and which contains the following files:
- Unive
- UniveBol
- UniveBla
- UniveLig
The files for the Oblique (Italic) style of the Univers font are ommitted as they do not fit into the overall design and because the pf2afm tool, described later in this article, creates empty font metric files for those font styles.
The following steps are necessary to convert the Macintosh font files into the binary postscript font format (see MacTeX):
t1unmac Unive punr8a.pfb t1unmac UniveBol punb8a.pfb t1unmac UniveBla punc8a.pfb t1unmac UniveLig punl8a.pfb
The names punX8a.pfb follow a formal pattern, that is described in the LaTex font naming guide.
The next step is to create Adobe Font Metric (afm) files from the binary font outline files:
find . -name \"*.pfb\" -exec pf2afm {} \;
The 16-step guide was the crucial element for the successful installation of the Univers font.
The description above substitutes steps 1.-3. from the 16-step guide.
Unfortunately a few steps are missing from the guide, especially when you are not a LaTex expert.
The guide just tells you to use and adapt the style file times.sty, but it does not tell you how.
The file times.sty must be moved to the local TeX tree
/usr/local/lib/texmf/tex/latex/styles/univers.sty
and the content should be adapted to match the following:
%%
%% This is file 'univers.sty'
%% 'pun' is the prefix of the font files.
%%
\ProvidesPackage{univers}
\renewcommand{\encodingdefault}{T1}
\renewcommand{\rmdefault}{pun}
\endinput
In step 8 of the guide the file psfontsextra.map is created. This file should be moved to /usr/local/lib/texmf/dvips/univers.map and the following command must then be run on the file:
updmap --enable Map /usr/local/lib/texmf/dvips/univers.map
The final step to update the LaTex file database of is:
texhash
Now the new font can be used like this in the document header of a LaTex source file:
\usepackage{univers}

search










feeds