gonium.net » hoefler http://gonium.net/md so much time, so little to do. Sat, 11 Sep 2010 16:42:09 +0000 en hourly 1 http://wordpress.org/?v=3.0.1 Installing Hoefler Text in LaTeX http://gonium.net/md/2008/11/23/installing-hoefler-text-in-latex/ http://gonium.net/md/2008/11/23/installing-hoefler-text-in-latex/#comments Sun, 23 Nov 2008 10:08:27 +0000 md http://gonium.net/md/?p=113 The Hoefler Text Ampersand

Not that straightforward, actually. Apple includes the Hoefler Text font in Mac OS X – its a really nice and readable professional font. Here’s what I did:

(1) You need to obtain the font in the opentype format (otf). Be careful: for me, the TTF version didn’t work. The Postscript type 1 version worked great.
(2) Use otftotfm -a to convert and install the files:

otftotfm -a -e texnansx HoeflerText-Regular.otf -fkern -fliga LY1--HoeflerText-Regular

This installs the regular form in the .texlive subdirectory of your home directory. Do this for all the font shapes you want to use. In the last step you need to create a .fd file:

\DeclareFontFamily{LY1}{HoeflerText}{}\DeclareFontShape{LY1}{HoeflerText}{m}{n}%
{ < -> LY1--HoeflerText-Regular }{}
\DeclareFontShape{LY1}{HoeflerText}{m}{it}{ < -> LY1--HoeflerText-Italic }{}
\DeclareFontShape{LY1}{HoeflerText}{m}{sl}{ < -> LY1--HoeflerText-Bold }{}
\DeclareFontShape{LY1}{HoeflerText}{b}{n}{ < -> LY1--HoeflerText-Bold }{}\DeclareFontShape{LY1}{HoeflerText}{b}{it}%
{ < -> LY1--HoeflerText-BoldItalic }{}

Put this in ~/.texlive2008/texmf-var/tex/latex/HoeflerText/LY1HoeflerText.fd. Again, make sure that all font shapes you want to use are included.

In your Latex document, put

\usepackage[LY1]{fontenc}
\renewcommand{\rmdefault}{HoeflerText}

to use the font.

The picture above was CCed on flickr by liikennevalo, thanks!

]]>
http://gonium.net/md/2008/11/23/installing-hoefler-text-in-latex/feed/ 0