[luatex] LuaTeX and LuaLaTeX logos

Heiko Oberdiek heiko.oberdiek at googlemail.com
Fri Apr 9 04:30:04 CEST 2010


On Wed, Mar 10, 2010 at 10:54:58AM +0100, Heiko Oberdiek wrote:

> A variant that tries the implicite kernings in the order of
> `aT', `oT', `To'. Also the code is compatible to plain-TeX:

Hans mailed me that positive kernings might happen.
Then I think, the model doesn't fit and the fixed
macro does not apply a kerning correction:

\def\LuaTeX{%
  \begingroup
    Lua%
    \setbox0\hbox{aT}%
    \setbox2\hbox{a\kern0ptT}%
    \dimen0=\wd0 %
    \advance\dimen0 by -\wd2 %
    \ifdim\dimen0=0pt %
      \setbox0\hbox{oT}%
      \setbox2\hbox{o\kern0ptT}%
      \dimen0=\wd0 %
      \advance\dimen0 by -\wd2 %
      \ifdim\dimen0=0pt %
        \setbox0\hbox{To}%
        \setbox2\hbox{T\kern0pto}%
        \dimen0=\wd0 %
        \advance\dimen0 by -\wd2 %
      \fi
      \ifdim\dimen0<0pt %
        \kern\dimen0 %
      \fi
    \fi
    \TeX
  \endgroup
}

Yours sincerely
  Heiko Oberdiek


More information about the luatex mailing list