freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ft-devel] Experimental: v38 interpreter with minimal backwards comp


From: Nikolaus Waxweiler
Subject: Re: [ft-devel] Experimental: v38 interpreter with minimal backwards compatibility mode and linear advance widths
Date: Mon, 25 Apr 2016 23:13:54 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.0

  2. In `ttinterp.c', please adjust and use the `SUBPIXEL_HINTING'
     macro, probably introducing `SUBPIXEL_HINTING_LEAN' and
     `SUBPIXEL_HINTING_INFINALITY' where necessary to simplify code
     that needs

       #if defined TT_CONFIG_OPTION_SUBPIXEL_HINTING      || \
           defined TT_CONFIG_OPTION_SUBPIXEL_HINTING_LEAN
       ...
       #endif

     It's probably a good idea also to add another macro that makes
     the above a single #ifdef line instead, e.g.

       #ifdef OPTION_SUBPIXEL_HINTING
       ...
       #endif

Uh, you mean the following macros in ttinterp.c?

#define SUBPIXEL_HINTING_INFINALITY
( ((TT_Driver)FT_FACE_DRIVER( exc->face ))->interpreter_version == TT_INTERPRETER_VERSION_38 )

#define SUBPIXEL_HINTING_LEAN
( ((TT_Driver)FT_FACE_DRIVER( exc->face ))->interpreter_version == TT_INTERPRETER_VERSION_40 )

#define OPTION_SUBPIXEL_HINTING
  defined TT_CONFIG_OPTION_SUBPIXEL_HINTING ||
  defined TT_CONFIG_OPTION_SUBPIXEL_HINTING_LEAN

I think I need to also modify Infinality code since it may run in v35 mode while in v38 mode. Guh.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]