This question is already asked here, but accepted answer reverts to pdflatex, which won't work for this project.
I originally specified Palatino font with \usepackage[sc, osf]{mathpazo}
, however I have learned that since polyglossia
, which I need for various international languages, implicitly loads fontspec
, I am instead using \setmainfont{TeX Gyre Pagella}
, a font which I manually installed on the (OS X) system from CTAN download.
TeX Gyre Pagella
doesn't seem to include smallcaps, so I downloaded and installed Palatino Small Caps & Old Style Figures.ttf
as shown here:
fc-list | grep Palatino
/Users/mikekilmer/Library/Fonts/Palatino Small Caps & Old Style Figures.ttf: Palatino Small Caps & Old Style,Palatino:style=Regular,Small Caps & Old Style Figures
/System/Library/Fonts/Palatino.ttc: Palatino:style=Bold
/System/Library/Fonts/Palatino.ttc: Palatino:style=Regular
/System/Library/Fonts/Palatino.ttc: Palatino:style=Bold Italic
/System/Library/Fonts/Palatino.ttc: Palatino:style=Italic
As far as I can tell from the following font info, Palatino-SC would be the name to reference to use:
otfinfo -i '~/Library/Fonts/Palatino Small Caps & Old Style Figures.ttf'
Family: Palatino Small Caps & Old Style
Subfamily: Regular
Full name: Palatino-SC
PostScript name: Palatino-SC
Version: 001.001
Unique ID: Palatino Small Caps & Old Style Figures:1178633258
Copyright: Copyright (c) 1985, 1987, 1989, 1990, 1991 Adobe Systems Incorporated. All Rights Reserved.Palatino is a trademark of Linotype AG and/or its subsidiaries.
But in this example, there's no small caps displayed:
\documentclass[a5paper,twoside,11pt]{extbook}
\usepackage{polyglossia}
\setdefaultlanguage{english}
\defaultfontfeatures{Mapping=tex-text}
\setmainfont[Numbers=OldStyle,
SmallCapsFont={Palatino-SC},
SmallCapsFeatures={Letters=SmallCaps}
]{TeX Gyre Pagella}
\begin{document}
\textsc{Once upon a time} we had a story. Once upon a time.
\end{document}
What IS working, is the following fontspec
font family substitution:
\newfontfamily\scshape[Letters=SmallCaps,Scale=1.15]{Palatino-SC}
Can someone explain 1. Why the setmainfont
parameters aren't working and 2. How I can get OldStyleNums to display?
fontspec
?polyglossia
does it\setmainfont[Numbers=OldStyle]{TeX Gyre Pagella}
I get small caps.fc-list
will not necessarily tell you which fonts are available or will be used by XeTeX/LuaTeX on OS X, becausefontconfig
is not the native font-handling system. On Linux, it would tell you, but on OS X, you end up with distinct font management software and you need to know which one is being used for what. (This is true on Linux, too, but much less so as almost everything now usesfontconfig
.) At least, this is how it worked when I used OS X, which isn't recently.