[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ft-devel] how to compute maxp.maxStackElements?
From: |
Werner LEMBERG |
Subject: |
Re: [ft-devel] how to compute maxp.maxStackElements? |
Date: |
Sat, 08 Oct 2016 18:28:03 +0200 (CEST) |
> I noticed however that the value as computed by VTT seems to be
> always a bit greater than the one I get from the code above, usually
> around 80-90 bytes greater (it varies from font to font). I don't
> know why that is the case, and I wonder if someone else in this list
> could shed some light on this?
The stack size might depend on the used PPEM value if there is
conditional code – do you run the loop for all PPEM values from, say,
6ppem to 72ppem? Similarly, it might depend on the used rasterizer
mode (ClearType, B/W rendering, etc.) and a lot of other things, so I
can imagine that VTT adds some bytes just to be on the safe side.
Werner