[luatex] LuaTeX file almost 2.5x bigger

Paul Isambert zappathustra at free.fr
Sun Aug 8 19:18:01 CEST 2010


Selon Reinhard Kotucha <reinhard.kotucha at web.de>:

> On 8 August 2010 Paul Isambert wrote:
>
>  > Selon Reinhard Kotucha <reinhard.kotucha at web.de>:
>  >
>  > > There is probably some room for improvements.  The TJ operator
>  > > supports kerning already quite similar to dvips, which is very
>  > > efficient.
>  > >
>  > > Example (from the PDF reference manual):
>  > >
>  > >   [(A) 120 (W) 120 (A) 95 (Y)] TJ
>  > >
>  > > And the Th operator supports horizontal scaling.
>  > >
>  > > I think that a lot of space can be saved if these operators are used
>  > > instead of the TextMatrix.
>  >
>  > If I'm not mistaken, that's letterspacing instead of glyph
>  > reshaping, right?
>
> Yes, the numbers between characters denote the amount of kerning.
> Glyph reshaping can be done using the Th operator.

Which pdf/LuaTeX don't use, I guess because since expansion is made line by
line, it goes faster to use Tm to both expand and move to the beginning of the
line. I've said earlier that pdfTeX uses Td to move to the next line (while
LuaTeX uses Tm), but that's the case without expansion. If expansion is in
force, it uses Tm - even if the line isn't reshaped (i.e. 1 0 0 1 x y Tm).

Best,
Paul


More information about the luatex mailing list