[Tex/LaTex] Controlling fontspec to use certain font features for different fonts in one document

fontspecligatures

I'm using the font Fontin to prepare a document and have come across a problem when using the discretionary ligatures. The regular font supports the discretionary ligatures, but the bold and italic variants do not. When I turn the feature on, there will be blank spaces where a bold or italic discretionary ligature should be.

How can I achieve that when using the regular font, discretionary ligatures are used, and when using one of the fonts that do not support them, they aren't used?

I used the following command to turn on the features.

\fontspec[RawFeature={+liga, +dlig, +frac}]{Fontin}

Best Answer

I don't have Fontin, but the following seems to work

\fontspec[RawFeature={+liga,+dlig},
  ItalicFeatures={RawFeature={-liga,-dlig}},
  BoldFeatures={RawFeature={-liga,-dlig}}]{Linux Libertine O}
Related Question