fontspec icon indicating copy to clipboard operation
fontspec copied to clipboard

Letter spacing should suppress common ligatures

Open khaledhosny opened this issue 12 years ago • 1 comments

It is undesirable to have common ligatures when letter spacing the text. IIRC InDesign disables common ligatures when the letter spacing exceeds some threshold, we probably should do the same. (this should leave required ligatures, or other forms of ligatures explicitly enabled by the user).

khaledhosny avatar Feb 22 '13 15:02 khaledhosny

I prepared a nice test file to report just this, but you were faster! And I also made a test with pdfTeX engine and \textls from the microtype package. This one prevents the choice of ligatures. Here is the XeTeX test file with all the ligatures in Latin scripts I could imagine:

\listfiles \documentclass{minimal} \usepackage{fontspec}

% \defaultfontfeatures{Ligatures=TeX} \setmainfont{Times}

\begin{document}

\fontspec[LetterSpace=50]{Palatino Linotype} Fiofinflufffastkickittòctä

\fontspec[LetterSpace=50]{Palatino} Fiofinflufffastkickittòctä

\fontspec[LetterSpace=50]{Lucida Bright} Fiofinflufffastkickittòctä

\fontspec[LetterSpace=50]{Times} Fiofinflufffastkickittòctä

\fontspec[LetterSpace=50]{Helvetica} Fiofinflufffastkickittòctä

\fontspec[LetterSpace=50]{Linux Libertine O} Fiofinflufffastkickittòctä\

\fontspec[LetterSpace=50]{Palatino Linotype} Quafkefjifhofbufzöchá

\fontspec[LetterSpace=50]{Palatino} Quafkefjifhofbufzöchá

\fontspec[LetterSpace=50]{Lucida Bright} Quafkefjifhofbufzöchá

\fontspec[LetterSpace=50]{Times} Quafkefjifhofbufzöchá

\fontspec[LetterSpace=50]{Helvetica} Quafkefjifhofbufzöchá

\fontspec[LetterSpace=50]{Linux Libertine O} Quafkefjifhofbufzöchá\

\fontspec[LetterSpace=50]{Palatino Linotype} loelaemctostutzàkkèlléthë

\fontspec[LetterSpace=50]{Palatino} loelaemctostutzàkkèlléthë

\fontspec[LetterSpace=50]{Lucida Bright} loelaemctostutzàkkèlléthë

\fontspec[LetterSpace=50]{Times} loelaemctostutzàkkèlléthë

\fontspec[LetterSpace=50]{Helvetica} loelaemctostutzàkkèlléthë

\fontspec[LetterSpace=50]{Linux Libertine O} loelaemctostutzàkkèlléthë\

\end{document}

%%% Local Variables: %%% TeX-master: t %%% End:

The PDF output shows that some fonts (Lucida Bright from Java) can resist the charme of XeTeX and do not show ligatures:

Fontspec-Ligatures-Bug

ballapete avatar Feb 23 '13 16:02 ballapete