What causes this warning, and how to get rid of it?

I believe that I have installed some packages that make this warning, but I couldn't figure out how to undo this damage.

P.S. I am using MikTeX 2.9 on Win 10.

OpenType feature 'Ligatures=RequiredOff' (rlig) not(fontspec) available for font 'LatinModernRoman' with script(fontspec) 'CustomDefault' and language 'Default'.


\setmathfont[math-style=ISO]{Cambria Math}
]{Latin Modern Roman}



Latin Modern Roman has only two font features for ligatures:

otfinfo -f lmroman12-regular.otf | grep lig

has the output:

dlig    Discretionary Ligatures
liga    Standard Ligatures

If you do not want a warning then use:

\setmainfont[ Ligatures={NoCommon, % liga
                         NoRare,% dlig
}]{Latin Modern Roman}
  • Many thanks. May I know from where can I get the info you gave here? – Diaa Oct 7 '19 at 18:38
  • 1
    The programm otfinfo comes with every TeX-Distribution. The features are explained in the documentation of fontspec – user187802 Oct 7 '19 at 18:49
  • I ran this otfinfo -f lmroman12-regular.otf | grep lig in the command prompt and got this'otfinfo' is not recognized as an internal or external command. Am I doing it right? Additionally, I would be grateful if you explained how can I know that Latin Modern Roman maps to lmroman12-regular.otf? – Diaa Oct 7 '19 at 21:31
  • Which TeX distribution? Which operating system? – user187802 Oct 8 '19 at 5:19
  • Miktex 2.9 on Win10 – Diaa Oct 8 '19 at 23:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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