[XeTeX] load math font ttc xetex

Adam Twardoch (Lists) list.adam at twardoch.com
Tue Apr 28 16:20:42 CEST 2020


A TTC is a sort of archive that contains multiple TTF files, in a way. The
index is specific to each TTC — it's just the choice of the TTF. AFAIR,
Cambria.ttc has two fonts, the normal Cambria and Cambria Math. So to load
Cambria Math from Cambria.ttc, I think you'd need FontIndex=1

On Tue, 28 Apr 2020 at 16:13, Pierre Dupond <76nemo76 at gmx.ch> wrote:

> Hi All,
>       I would load the cambria math from the
> file Cambria.ttc with XeLaTeX.
>
> By looking in the documentation of the fontspec package, I have found
> that indexes should be used.
>
> \setmainfont{Optima.ttc}[
> Path = /System/Library/Fonts/ ,
> UprightFeatures = {FontIndex=0},
> BoldFeatures = {FontIndex=1},
> ItalicFeatures = {FontIndex=2},
> BoldItalicFeatures = {FontIndex=3}
> ]
>
> I have seen nothing similar for the command \setmathfont.
> If it is possible
> to load a math font from a ttc file what should be the label before
> the equal sign (MathFont?).
>
> Usually, I use Cambria Math by using the font name instead
> of the file but sometimes it is more convenient to
> use directly the font file on the disk.
>
> best regards,
>
> --
> Pierre Dupond <76nemo76 at gmx.ch>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/xetex/attachments/20200428/d8548c3e/attachment.html>


More information about the XeTeX mailing list.