Modify bytecode to create twilight points.
commit08027dd5bdd1a22060450b6248444e6051c3f603
authorWerner Lemberg <wl@gnu.org>
Thu, 27 Oct 2011 10:35:31 +0000 (27 12:35 +0200)
committerWerner Lemberg <wl@gnu.org>
Thu, 27 Oct 2011 10:35:31 +0000 (27 12:35 +0200)
treeeab40ed908f12558c733a0997b484eae6493ce96
parentda3986aa6cbf47cc9d5d4450edc24e5d98b8ce02
Modify bytecode to create twilight points.

Relying on the Microsoft OpenType specification only was a mistake, since it
lacks the description of how to create twilight points.  [I've reported this
bug, and a future version of the specification should have this fixed
eventually.]

This patch creates twilight points in accordance with Apple's TrueType
specification.  In particular, it doesn't rely on the initialization of
twilight points to (0,0).  Doing so has the nice side effect that the new
bytecode is smaller since it is no longer necessary to maintain two sets of
twilight points: `Creating' a twilight point means to set its original
coordinate, thus instructions like GC_cur and GC_orig both work as expected
in the twilight zone also.
src/tafpgm.c