[luatex] [lltx] fontspec prevents hyphenation

Philipp Stephani st_philipp at yahoo.de
Sun Nov 28 14:13:21 CET 2010


Am 28.11.2010 um 12:40 schrieb Khaled Hosny:

> It seems deeper than fontspec, either in luaotfload or something deeper
> inside latex. This gives the same result:
> 
> \documentclass{article}
> \usepackage{luaotfload}
> \usepackage[EU2]{fontenc}
> \usepackage[width=2cm]{geometry}
> 
> \begin{document}
> An intere\textit{st}ing word.
> 
> An intere{\itshape st}ing word
> \end{document}

LaTeX uses the first font dimension in the italic correction code. This number must be strictly positive for italic fonts.

\documentclass{article}
\begin{document}
\textit{\the\fontdimen1\font}
\end{document}

compiled with pdfLaTeX results in 0.25pt, but

\documentclass{article}
\usepackage{luaotfload}
\usepackage{lmodern}
\usepackage[EU2]{fontenc}
\begin{document}
\textit{\the\fontdimen1\font}
\end{document}

compiled with LuaLaTeX results in 0.0pt.


More information about the luatex mailing list