# HG changeset patch # User Xander Ziiryanoff # Date 1462876000 -7200 # Node ID 86698e8d683a8a0153c667df6b71c2d77d960b62 # Parent 40fab26c175dae34c5f664848347f05caba2dbac freetype: clear fonts should be at least optional diff -r 40fab26c175d -r 86698e8d683a freetype/description.txt --- a/freetype/description.txt Mon May 09 21:59:10 2016 +0300 +++ b/freetype/description.txt Tue May 10 12:26:40 2016 +0200 @@ -2,3 +2,5 @@ customizable while capable of producing high-quality output (glyph images) of most vector and bitmap font formats for digital typography. FreeType is a freely available and portable software library to render fonts. + +This version supports NO_SUBPIXEL_HINTING environment variable. diff -r 40fab26c175d -r 86698e8d683a freetype/receipt --- a/freetype/receipt Mon May 09 21:59:10 2016 +0300 +++ b/freetype/receipt Tue May 10 12:26:40 2016 +0200 @@ -20,6 +20,9 @@ # Fix make install for version 2.6.1 patch -p1 -i $stuff/freetype261-install.patch + # Optional old style fonts + patch -p1 -i $stuff/NO_SUBPIXEL_HINTING.env.patch + # Directives from LFS sed -e "/AUX.*.gxvalid/s@^# @@" \ -e "/AUX.*.otvalid/s@^# @@" \ diff -r 40fab26c175d -r 86698e8d683a freetype/stuff/NO_SUBPIXEL_HINTING.env.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/freetype/stuff/NO_SUBPIXEL_HINTING.env.patch Tue May 10 12:26:40 2016 +0200 @@ -0,0 +1,20 @@ +Source: https://projects.archlinux.org/svntogit/packages.git/tree/trunk/0004-Mask-subpixel-hinting-with-an-env-var.patch?h=packages/freetype2 +This is edited version of patch. + +--- a/src/truetype/ttobjs.c ++++ b/src/truetype/ttobjs.c +@@ -1302,10 +1302,11 @@ + TT_Driver driver = (TT_Driver)ttdriver; + + #ifdef TT_CONFIG_OPTION_SUBPIXEL_HINTING +- driver->interpreter_version = TT_INTERPRETER_VERSION_38; +-#else +- driver->interpreter_version = TT_INTERPRETER_VERSION_35; ++ if ( getenv( "NO_SUBPIXEL_HINTING" ) ) ++ driver->interpreter_version = TT_INTERPRETER_VERSION_35; ++ else + #endif ++ driver->interpreter_version = TT_INTERPRETER_VERSION_38; + + #else /* !TT_USE_BYTECODE_INTERPRETER */ + \ No newline at end of file