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}%

Attachment: scshape.tex
Description: TeX document

Attachment: scshape.pdf
Description: Adobe PDF document


--------------------------------------------------
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex

Reply via email to