[XeTeX] \newfontface and small caps

Michiel Kamermans pomax at nihongoresources.com
Thu Jan 21 23:05:20 CET 2010


Hi Martijn,

the \newfontface command is specifically for those instances where you 
only want to load a specific face (regular, bold, italic...) because the 
other faces might be missing features that you rely on. Since smallcaps 
are not a "font face", this is never going to work =)

Instead, use \newfontfamily\mycaslon[Letters=SmallCaps]{Adobe Caslon 
Pro} to get the effect you're after:

\documentclass{article}
\usepackage{xltxtra} % also loads xunicode and fontspec for us
\newfontfamily\plaincaslon{Adobe Caslon Pro}
\newfontfamily\sccaslon[Letters=SmallCaps]{Adobe Caslon Pro}
\setlength{\parindent}{0pt}
\begin{document}
{\plaincaslon \scshape Adobe Caslon Pro} \\
{\sccaslon Adobe Caslon Pro}
\end{document}


- Mike "Pomax" Kamermans
nihongoresources.com





More information about the XeTeX mailing list