[lltx] [luatex] fontspec prevents hyphenation

Philipp Stephani st_philipp at yahoo.de
Sun Nov 28 16:21:56 CET 2010


Am 28.11.2010 um 15:46 schrieb Khaled Hosny:

> The file
> bellow is hyphenated just fine and italic correction is applied, though
> I'm getting more confused and I actually lost track of what the original
> issue was.
> 
> \documentclass{article}
> \usepackage{fontspec}
> \setmainfont[
>    ItalicFeatures={RawFeature={+itlc}}
> ]{Latin Modern Roman}
> \usepackage[width=2cm]{geometry}
> 
> \begin{document}
> An inter\textit{est}ing word.

This doesn't work because LaTeX inserts \/ before "est" since the first font dimension is zero.

> 
> An inter{\itshape est\/}ing word.
> \end{document}

This works because LaTeX doesn't insert \/ here.
Either fontspec has to patch the LaTeX kernel, or the first font dimension for italic fonts must be set to a positive value by luaotfload.


More information about the lualatex-dev mailing list