Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I am using Adobe's Garamond Premier Pro and it has various varities for use with larger and smaller forms of text (see http://www.adobe.com/type/topics/opticalsize.html).

Is there a good way to make XeLaTeX use the proper face at the proper time (e.g., footnotes should be in caption, etc). Of course, some care must be taken that things like \emph properly work in the context.

share|improve this question
2  
Yes. It's described in the fontspec manual. –  Mico Dec 12 '11 at 5:07
    
The optical sizes are selected automatically; see this question –  egreg Dec 12 '11 at 8:46
    
It doesn't seem to be working… –  Aaron Yodaiken Dec 12 '11 at 22:37
add comment

1 Answer

The fontspec package allows you to tailor font variants by size.

Here's how I do it for Minion Pro; you'll need to adapt it for your case:

\usepackage{fontspec}
...
\setmainfont[%
    Numbers=OldStyle,
    Kerning=Uppercase,
    SizeFeatures={%
        {Size={-8.4},Font=* Caption},
        {Size={8.41-13.0},Font=*},
        {Size={13.01-19.9},Font=* Subhead},
        {Size={19.91-},Font=* Display}
    }
]{Minion Pro}

What this says is: "For sizes up to 8.4pt, use Minion Pro Caption; up to 13.0 use Minion Pro; up to 19.9 Minion Pro Subhead; and Minion Pro Display above that".

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.