[XeTeX] problem getting small caps
Ulrike Fischer
news3 at nililand.de
Sat Nov 7 18:08:25 CET 2009
Am Sat, 07 Nov 2009 10:52:42 -0500 schrieb Mike Maxwell:
> Let me try a different way to get at this problem. I'd like to try
> using \fontspec to load some font that I know has small caps.
>
> If I don't use \fontspec{Charis SIL}, xelatex picks some default font,
> and small caps work. So I thought maybe I could explicitly tell
> \fontspec to load that font.
You can't use latin modern as a test font. In the lmodern fonts the
caps are in a separate file. You have to load them with
SmallCapsFont:
\XeTeXtracingfonts=1
\documentclass{article}
\usepackage{fontspec}
\setmainfont[SmallCapsFont={* Caps}]{Latin Modern Roman}
%\setmainfont{Charis SIL}
\begin{document}
\scshape abc
\end{document}
loads
J:/MiKTeX2.7/fonts/opentype/public/lm/lmromancaps10-regular.otf
Btw: the newest Charis Sil (version 4.106) works fine for me.
--
Ulrike Fischer
More information about the XeTeX
mailing list