[XeTeX] Including jpgs

Berteun Damman berteun at gmail.com
Fri Oct 24 09:01:56 CEST 2008


On Fri, Oct 24, 2008 at 12:23 AM, Andrew Moschou <andmos at gmail.com> wrote:
> 2. Myriad Pro doesn't come with small caps right?
>
> Right. http://store3.adobe.com/type/browser/pdfs/MYRP/MyriadPro-Regular.pdf

If one uses fontspec however, and one has the semibold weight
available, it is possible to fake the small caps in a way which isn't
so bad, by saying something like:

\setmainfont[SmallCapsFont={Myriad Pro Semibold},%
    SmallCapsFeatures={Scale=0.72,LetterSpace=5.0}]{Myriad Pro}%

If you need 'bold small caps' too (provided you use the semibold as
your default Bold variant), this would be possible by an additional
specification of:

    BoldFont={Myriad Pro Semibold},%
    BoldFeatures={SmallCapsFont={Myriad Pro Bold},%
      SmallCapsFeatures={Scale=0.72,LetterSpace=7.0}},

By using the semibold weight the fake small caps will not look too
thin, which downsized regular capitals do. There is one important
catch however if you use this: you have to provide uppercase text to
the \textsc{} command: \textsc{THIS IS SMALL CAPS} – \textsc{this is
small caps} will give downsized semibold lowercase letters, which is
quite useless. This solution is not ideal but works if you only have
the occasional acronym you want to format as small caps. If you
automatically format figure captions etc. in small caps, this won't
work.

Berteun


More information about the XeTeX mailing list