[luatex] babel, fontspec und lualatex

Ulrike Fischer luatex at nililand.de
Tue Jul 16 11:05:31 CEST 2013


Am Mon, 15 Jul 2013 21:28:18 +0200 schrieb Herbert Voss:

> WIth current TL 2013, LuaLaTeX, and babel I get an additional
> space between\TeX and nic
> With polyglossia or using XeLaTeX everything is fine.

The new babel redefines the \TeX command and surrounds it by
\textlatin and this reveals a bug:
 
\fontdimen1 is wrong with lualatex (it is 0pt) and now the tests for
italic correction fails as latex doesn't realize that a slanted font
is involved:


\documentclass[12pt]{article}

\usepackage[english]{babel}
\usepackage{fontspec}


\begin{document}
\Huge



{\itshape
 \the\fontdimen1\font %0pt with lualatex, 0.25pt with xelatex

 \textlatin{XXXX}nic

  XXXXnic
}



{\itshape \fontdimen1\font=0.25pt

 \textlatin{XXXX}nic  
 
  XXXXnic
}

\end{document} 

-- 
Ulrike Fischer 
http://www.troubleshooting-tex.de/



More information about the luatex mailing list