khaledhosny / luaotfload

Moved to https://github.com/latex3/luaotfload
23 stars 15 forks source link

Italic correction #36

Closed wspr closed 13 years ago

wspr commented 13 years ago

It seems this bug fits in better here than in unicode-math:

Seems to be related to luaotfload: you get the same with plain TeX:

\input luaotfload.sty
\font\xits={name:XITS Math:script=math;mode=base} at 10pt\relax
\textfont0=\xits
$$\Umathchar 0 0 "1D443 \Umathchar 4 0 `( \Umathchar 0 0 "1D44E \Umathchar 5 0 `)$$
\bye

Adding the undocumented itlc feature doesn't seem to help either. So what should we do to get italic correction simulation for luaotfload?

kazuoteramoto commented 13 years ago

Any workaround? Because f^2 looks horrible:

\documentclass{article}
\usepackage{unicode-math}
\setmathfont{xits-math.otf}
\setmathfont[range={\mathit}]{WarnockPro-It.otf}
\begin{document}
\[f^2\].
\end{document}

pdf: http://fma.if.usp.br/~kazuo/mwe.pdf

khaledhosny commented 13 years ago

This is unrelated to this issue, such problems are expected when you use text fonts in math mode.

khaledhosny commented 13 years ago

For some reason italic correction is always set to zero. I need to investigate more.

khaledhosny commented 13 years ago

Finally found the root of it; it is a bug in texlive lua(la)tex format, nothing related to luaotfload at all.

khaledhosny commented 13 years ago

For future reference, here is the message I sent toTeXlive mailing list.