[XeTeX] no small caps in GNU FreeSerif font?
Daniel Greenhoe
dgreenhoe at gmail.com
Sun Dec 11 08:13:43 CET 2011
I cannot get small caps when using the OpenType GNU FreeSerif
(regular) typeface. But it is a little hard to believe that it is
really not available. Can someone tell me what I am doing wrong? (see
below code and/or attachments):
\documentclass[12pt]{book}
\usepackage{fontspec}
\defaultfontfeatures{%
SmallCapsFeatures = {Letters=SmallCaps},
}
\setmainfont[
ExternalLocation,
Path = {/xfonts/gnuFreeFont/},
Extension = {.otf},
UprightFont = {*},
BoldFont = {*Bold},
ItalicFont = {*Italic},
BoldItalicFont = {*BoldItalic},
%SmallCapsFont = {../texgyre/texgyrepagella-regular},
]{FreeSerif}
\newfontfamily{\fntFreeSerif}[
ExternalLocation,
Path = {/xfonts/gnuFreeFont/},
Extension = {.otf},
UprightFont = {*},
BoldFont = {*Bold},
ItalicFont = {*Italic},
BoldItalicFont = {*BoldItalic},
%SmallCapsFont = {../texgyre/texgyrepagella-regular},
]{FreeSerif}
\newfontfamily{\fntPagella}[
Extension = {.otf},
ExternalLocation,
Path = {/xfonts/texgyre/},
UprightFont = {*-regular},
BoldFont = {*-bold},
ItalicFont = {*-italic},
BoldItalicFont = {*-bolditalic},
]{texgyrepagella}
\newfontfamily{\fntLibertineLR}[
Extension = {.otf},
UprightFont = {*},
BoldFont = {*o},
ItalicFont = {*i},
BoldItalicFont = {*i},
]{fxlr}
\newfontfamily{\fntCharisSIL}[
ExternalLocation,
Path = {/xfonts/},
Extension = {.ttf},
UprightFont = {*R},
BoldFont = {*B},
ItalicFont = {*I},
BoldItalicFont = {*BI},
]{CharisSIL}
\newfontfamily{\fntHeuristica}[
ExternalLocation,
Path = {/xfonts/heuristica/},
Extension = {.otf},
UprightFont = {*-Regular},
BoldFont = {*-Bold},
ItalicFont = {*-Italic},
BoldItalicFont = {*-BoldItalic},
Ligatures = {NoCommon},
]{Heuristica}
\begin{document}%
\thispagestyle{empty}%
\begin{tabular}{ll}
GNU FreeSerif: & \fntFreeSerif ABCabc \scshape ABCabc\\
Pagella: & \fntPagella ABCabc \scshape ABCabc\\
Libertine: & \fntLibertineLR ABCabc \scshape ABCabc\\
Charis: & \fntCharisSIL ABCabc \scshape ABCabc\\
Heuristica: & \fntHeuristica ABCabc \scshape ABCabc\\
\end{tabular}
\end{document}%
-------------- next part --------------
A non-text attachment was scrubbed...
Name: scshape.tex
Type: application/x-tex
Size: 2521 bytes
Desc: not available
URL: <http://tug.org/pipermail/xetex/attachments/20111211/f1eefa36/attachment-0001.tex>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: scshape.pdf
Type: application/pdf
Size: 24119 bytes
Desc: not available
URL: <http://tug.org/pipermail/xetex/attachments/20111211/f1eefa36/attachment-0001.pdf>
More information about the XeTeX
mailing list