[Dev-luatex] bug 345: Kerning is not perfect in math mode

Taco Hoekwater taco at elvenkind.com
Sat Mar 13 12:08:36 CET 2010

Taco Hoekwater wrote:
> Hi,
> See http://tracker.luatex.org/view.php?id=345
> I've tried to fix this by checking the \catcode of the current
> character for 'new math fons' instead of relying on the font's
> space() fontdimen like TeX82 does.
> This fix is based on the assumption that the 'high numbers' won't
> have \catcode 11, so that only the low upright alphabetic characters
> will have the italic correction stripped, and those are exactly the
> ones we want to reach in 'typical' new math input: this nicely covers
> operators that have 'names' like \sin, and any other uses of \rm
> in math mode.
> The downside is that this fix will break stuff like
>   $ A {\it forces} B $
> but I see no way to tackle that automatically.

Of course this is only the case if 'forces' is automatically
remapped to the high part of the math range. If \it is an actual
font switch, all will be fine. So I assume this means the current
fix is acceptable.

Best wishes,

More information about the dev-luatex mailing list