[XeTeX] weird behaviour with LetterSpace

Pablo Rodríguez oinos at web.de
Mon May 31 23:13:06 CEST 2010


Hi there,

I have just accidentally discovered that LetterSpace behaves differently 
if the whole paragraph is set with this feature or not.

The minimal example:

\documentclass[12pt]{article}
\usepackage{fontspec}
\setmainfont{Theano Didot}
\begin{document}
χαλεπὰ \addfontfeature{LetterSpace=12}τὰ καλά

χαλεπὰ τὰ καλά

χαλεπὰ \addfontfeature{LetterSpace=0}τὰ καλά

Beauty \addfontfeature{LetterSpace=12}is difficult

Beauty is difficult

Beauty \addfontfeature{LetterSpace=0}is difficult
\end{document}

If you copy the resulting text (from 
http://www.ousia.tk/wrong-letterspace.pdf), you will see that only the 
second line is properly typeset, or at least, there are no blank spaces 
between letters.

I guess this might be a probable cause for wrong hyphenation when using 
LetterSpace. (BTW, loading polyglossia makes no difference.)

Have I hit a bug in LetterSpace? Do you know any way to avoid this?

Thanks for your help,


Pablo


More information about the XeTeX mailing list