wok diff freetype/stuff/NO_SUBPIXEL_HINTING.env.patch @ rev 19203
linld/tobzimage: add realmode_switch support
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Jun 11 15:57:21 2016 +0200 (2016-06-11) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/freetype/stuff/NO_SUBPIXEL_HINTING.env.patch Sat Jun 11 15:57:21 2016 +0200 1.3 @@ -0,0 +1,20 @@ 1.4 +Source: https://projects.archlinux.org/svntogit/packages.git/tree/trunk/0004-Mask-subpixel-hinting-with-an-env-var.patch?h=packages/freetype2 1.5 +This is edited version of patch. 1.6 + 1.7 +--- a/src/truetype/ttobjs.c 1.8 ++++ b/src/truetype/ttobjs.c 1.9 +@@ -1302,10 +1302,11 @@ 1.10 + TT_Driver driver = (TT_Driver)ttdriver; 1.11 + 1.12 + #ifdef TT_CONFIG_OPTION_SUBPIXEL_HINTING 1.13 +- driver->interpreter_version = TT_INTERPRETER_VERSION_38; 1.14 +-#else 1.15 +- driver->interpreter_version = TT_INTERPRETER_VERSION_35; 1.16 ++ if ( getenv( "NO_SUBPIXEL_HINTING" ) ) 1.17 ++ driver->interpreter_version = TT_INTERPRETER_VERSION_35; 1.18 ++ else 1.19 + #endif 1.20 ++ driver->interpreter_version = TT_INTERPRETER_VERSION_38; 1.21 + 1.22 + #else /* !TT_USE_BYTECODE_INTERPRETER */ 1.23 + 1.24 \ No newline at end of file