wok view freetype/stuff/NO_SUBPIXEL_HINTING.env.patch @ rev 19247

pciids, usbids: recompress with advdef
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Jun 29 10:29:16 2016 +0200 (2016-06-29)
parents
children
line source
1 Source: https://projects.archlinux.org/svntogit/packages.git/tree/trunk/0004-Mask-subpixel-hinting-with-an-env-var.patch?h=packages/freetype2
2 This is edited version of patch.
4 --- a/src/truetype/ttobjs.c
5 +++ b/src/truetype/ttobjs.c
6 @@ -1302,10 +1302,11 @@
7 TT_Driver driver = (TT_Driver)ttdriver;
9 #ifdef TT_CONFIG_OPTION_SUBPIXEL_HINTING
10 - driver->interpreter_version = TT_INTERPRETER_VERSION_38;
11 -#else
12 - driver->interpreter_version = TT_INTERPRETER_VERSION_35;
13 + if ( getenv( "NO_SUBPIXEL_HINTING" ) )
14 + driver->interpreter_version = TT_INTERPRETER_VERSION_35;
15 + else
16 #endif
17 + driver->interpreter_version = TT_INTERPRETER_VERSION_38;
19 #else /* !TT_USE_BYTECODE_INTERPRETER */