# [luatex] Italic correction for normal text with LuaLaTex

Reinhard Kotucha reinhard.kotucha at web.de
Sun Mar 11 21:47:06 CET 2012

On 2012-03-11 at 20:54:32 +0100, Bernhard Tempel wrote:

> Am 11.03.2012 18:48, schrieb Khaled Hosny:
> >  The concept of italic correction does not exist in OpenType fonts (it
> >  is a character propriety in TFM files, with no correspondence in
> >  OpenType), so it will only work with TFM fonts.
>
> And only with those TFM fonts which have information on italic correction
> values for each glyph, so Source2e statement on automatic italic correction
> seems too general...
>
> >  "luaotfload" has an itlc option that would try to guess an
> >  italic correction for glyphs when loading the fonts. I've no
> >  idea how reliable is it.
> >
> >  Try \setmainfont[RawFeature={+itlc}]{Latin Modern Roman}, it
> >  seems to make a noticeable improvement.
>
> Thanks a lot for this. It really makes an improvement. In some
> cases the guessed glue is to big, but better results would be very
> difficult to reach when using heuristics. To calculate the extreme
> "\emph{f}!" combination works fine; with the less extreme
> combination "\emph{f}:" the kerning could be more tight, but I can
> see that the guessed value must be the the same as for "\emph{f}!".

But if you try

\parindent0pt
\emph{f}! \par
\emph{f}: \par
\emph{f}; \par
\emph{f}. \par

you'll see that the period is treated differently.  Is this a result
of the heuristics or does it come from somewhere else?

Regards,
Reinhard

--
----------------------------------------------------------------------------
Reinhard Kotucha                                      Phone: +49-511-3373112
Marschnerstr. 25
D-30167 Hannover                              mailto:reinhard.kotucha at web.de
----------------------------------------------------------------------------
Microsoft isn't the answer. Microsoft is the question, and the answer is NO.
----------------------------------------------------------------------------