|
From: | Cosimo Lupo |
Subject: | Re: [ft-devel] how to compute maxp.maxStackElements? |
Date: | Sat, 8 Oct 2016 17:32:19 +0100 |
> 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
[Prev in Thread] | Current Thread | [Next in Thread] |