I wanted to use the Cormorant font family in my LaTeX document.
I later learned that a Geramond variety of this family appears in the TeXLive distribution, but I was unaware at the time, and anyway I believe that these families are not identical, the Geramond lacking letter definitions for small caps.
I downloaded and unpacked the font files from the release download page (archive name Cormorant_Install_v3.601.zip
) into the folder containing my document, and inserted the following lines into my LaTeX file:
\usepackage{fontspec}
\setmainfont{Cormorant-Regular.ttf}[
BoldFont = Cormorant-Bold.ttf ,
ItalicFont = Cormorant-Italic.ttf ,
BoldItalicFont = Cormorant-BoldItalic.ttf,
]
I created some small caps formatting, which looked reasonable after running through XeLaTeX, but as I understood that LaTeX would not have a source of correct small caps lettering, it must be faking the small caps based on the regular style font. I wanted to achieve a superior appearance from the correct source for this letter appearance, which is given in a separate font file.
I added the additional field to the optional parameter list:
SmallCapsFont = CormorantSC-Regular.ttf
Yet, I discovered no difference in the output.
I tried a variety of further additions to the list, dealing with font features, based on my frustrated attempt to benefit from the fontspec
documentation, but I found no variation that produced output with a different effect.
I looked at the results under magnification, and began to wonder whether somehow the effect I was seeing was actually correct small caps. However, after inspecting the font file as best I could, I came to understand that a TTF-format file cannot embed both regular letters and small caps.
As such, the small caps output I have now is either fake, or the font is somehow being found in another source. Yet I have no evidence of either.
I can prove that the option has some effect because I can make LaTeX generate italics from the \textsc
command by using the following form:
SmallCapsFont = Cormorant-Italics.ttf
I created an overall test case, as follows.
\documentclass{article}
\usepackage{fontspec}
\usepackage{geometry}
\geometry{landscape,a5paper}
\setmainfont{Cormorant-Regular.ttf}[
BoldFont = Cormorant-Bold.ttf ,
ItalicFont = Cormorant-Italic.ttf ,
BoldItalicFont = Cormorant-BoldItalic.ttf,
]
\begin{document}
\Large
\noindent The Quick Brown Fox Jumped Over The Lazy Dog. \vspace{1em}
\noindent \textbf{The Quick Brown Fox Jumped Over The Lazy Dog.} \vspace{1em}
\noindent \textit{The Quick Brown Fox Jumped Over The Lazy Dog.} \vspace{1em}
\noindent \textsc{The Quick Brown Fox Jumped Over The Lazy Dog.} \vspace{1em}
\end{document}
Adding the following line to the optional parameter list of \setmainfont
should have an effect, but has none.
SmallCapsFont = CormorantSC-Regular.ttf