[luatex] LuaTeX file almost 2.5x bigger

Paul Isambert zappathustra at free.fr
Sun Aug 8 10:50:00 CEST 2010


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

> Nevertheless, as Patrick pointed out, the reason that the file created
> by LuaTeX is so large is that each glyph is preceded by the TextMatrix:
>
>   0.98 0 0 1 226.832 147.716 Tm [<0057>]TJ
>   0.985 0 0 1 230.145 147.716 Tm [<0058>]TJ
>   0.98 0 0 1 235.264 147.716 Tm [<0055>]TJ
>   0.985 0 0 1 238.686 147.716 Tm [<0044>]TJ
>   0.98 0 0 1 242.624 147.716 Tm [<004F>]TJ
>   0.985 0 0 1 247.57 147.716 Tm [<0056>]TJ
>   0.98 0 0 1 251.064 147.716 Tm [<00B5004F>]TJ

It'd be interesting to know what a PDF file produced with InDesign (hence very
probably hz) looks like. But is there a possibility to compress the file as
little as possible with InDesign, so we can read it? At least we would have the
mere weight to compare.


> 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?

Best,
Paul


More information about the luatex mailing list