[Bug 211201] print/freetype2: update to 2.7, add V40 code

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Feb 13 18:47:25 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=211201

--- Comment #73 from lightside <lightside at gmx.com> ---
(In reply to comment #72)
> Regarding the patch, the only thing I changed is that I changed the V38/V40
> GROUP to a MULTI. Because looking at the logic in the SUBPIXEL_HINTING_MODE
> selection there is not a !V38 && !V40 case. With Multi it 1 or more need to
> be selected.
The OPTIONS_GROUP was used, because possible to not define
TT_CONFIG_OPTION_SUBPIXEL_HINTING, e.g. when V38=off and V40=off, in which case
v35 (no subpixel hinting) mode may be used by default internally:
http://git.savannah.gnu.org/cgit/freetype/freetype2.git/tree/include/freetype/ftttdrv.h?h=VER-2-7-1#n192
http://git.savannah.gnu.org/cgit/freetype/freetype2.git/tree/include/freetype/ftttdrv.h?h=VER-2-7-1#n316
http://git.savannah.gnu.org/cgit/freetype/freetype2.git/tree/src/truetype/ttobjs.c?h=VER-2-7-1#n1278
http://git.savannah.gnu.org/cgit/freetype/freetype2.git/tree/src/truetype/ttinterp.c?h=VER-2-7-1#n52

The value of TT_CONFIG_OPTION_SUBPIXEL_HINTING defines
TT_SUPPORT_SUBPIXEL_HINTING_INFINALITY and/or
TT_SUPPORT_SUBPIXEL_HINTING_MINIMAL:
http://git.savannah.gnu.org/cgit/freetype/freetype2.git/tree/include/freetype/config/ftoption.h?h=VER-2-7-1#n889
http://git.savannah.gnu.org/cgit/freetype/freetype2.git/tree/include/freetype/config/ftoption.h?h=VER-2-7-1#n893
which used in other areas, e.g.:
http://git.savannah.gnu.org/cgit/freetype/freetype2.git/tree/src/truetype/ttdriver.c?h=VER-2-7-1#n98
http://git.savannah.gnu.org/cgit/freetype/freetype2.git/tree/src/truetype/ttgload.c?h=VER-2-7-1#n1359

There is some description about this:
http://git.savannah.gnu.org/cgit/freetype/freetype2.git/tree/include/freetype/config/ftoption.h?h=VER-2-7-1#n608
in the following part:
http://git.savannah.gnu.org/cgit/freetype/freetype2.git/tree/include/freetype/config/ftoption.h?h=VER-2-7-1#n665
-8<--
  /* By undefining these, you get rendering behavior like on Windows       */
  /* without ClearType, i.e., Windows XP without ClearType enabled and     */
  /* Win9x (interpreter version v35).  Or not, depending on how much       */
  /* hinting blood and testing tears the font designer put into a given    */
  /* font.  If you define one or both subpixel hinting options, you can    */
  /* switch between between v35 and the ones you define.
-->8-

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the freebsd-gnome mailing list