2

I understand that if I typeset using Lualatex or Xelatex, and include the following in the preamble:

\usepackage{fontspec}
\setmainfont{XYZ}

Then system-wide non-latex fonts can be used (substituted for XYZ in the above).

My question is, by using fontspec, does this mean that ligatures and kerning, that make LaTeX document otherwise of a higher 'typeset' quality would be essentially discarded for the convenience of getting access to a larger number of fonts?

Does this mean that in the above, one is essentially settling for 2nd best?

3
  • 3
    No: a modern opentype font has many ligatures and font shaping possibilities specified within the font. In addition if you also want classic TeX convenience ligatures such as -- to ndash you can use \setmainfont[Ligatures=TeX]{XYZ} Commented Dec 2, 2013 at 0:29
  • 3
    If you choose a font that doesn't have ligatures, you're not going to get ligatures. See the manual for more information about which ligatures you might want to use if the font has them. What are the other 'subtleties'?
    – jon
    Commented Dec 2, 2013 at 0:31
  • 2
    OpenType font files -- which I assume you're interested in -- generally include detailed kerning tables, and fontspec (and a subsidiary package called luaotfload) will make use of these tables if they're present. In addition, it is possible to set up so-called "feature files" that override and/or augment the settings shipped with the font family.
    – Mico
    Commented Dec 2, 2013 at 10:30

1 Answer 1

7

A modern opentype font has many ligatures and font shaping possibilities specified within the font. In addition if you also want classic TeX convenience ligatures such as -- to ndash you can use

\setmainfont[Ligatures=TeX]{XYZ}

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .