[XeTeX] Hoefler Text uppercase numbers

Will Robertson wspr81 at gmail.com
Sun Oct 15 07:02:09 CEST 2006


Hi,

With Mac OS X Tiger, Apple broke Hoefler Text such that uppercase  
numbers can't be accessed via font features (in the upright roman),  
although the glyphs exist in the font.

Without digging into Apple's font tools to learn how to patch the  
problem at its source (I don't often use Hoefler Text, except in the  
fontspec documentation), here's a way to get around the problem,  
crudely, in XeTeX:

\documentclass{article}
\usepackage{fontspec}
\begin{document}
\fontspec{Hoefler Text}
\newcommand\hoefnum[1]{\XeTeXglyph\numexpr315+#1\relax}
\hoefnum0
\hoefnum1
\hoefnum2
\hoefnum3
\hoefnum4
\hoefnum5
\hoefnum6
\hoefnum7
\hoefnum8
\hoefnum9
\end{document}

Cheers,
Will
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2361 bytes
Desc: not available
Url : http://tug.org/pipermail/xetex/attachments/20061015/7143be07/attachment.bin 


More information about the XeTeX mailing list