wok-next rev 19127

freetype: clear fonts should be at least optional
author Xander Ziiryanoff <psychomaniak@xakep.ru>
date Tue May 10 12:26:40 2016 +0200 (2016-05-10)
parents 40fab26c175d
children 73e9a7d984fc
files freetype/description.txt freetype/receipt freetype/stuff/NO_SUBPIXEL_HINTING.env.patch
line diff
     1.1 --- a/freetype/description.txt	Mon May 09 21:59:10 2016 +0300
     1.2 +++ b/freetype/description.txt	Tue May 10 12:26:40 2016 +0200
     1.3 @@ -2,3 +2,5 @@
     1.4  customizable while capable of producing high-quality output (glyph images) of
     1.5  most vector and bitmap font formats for digital typography. FreeType is a freely
     1.6  available and portable software library to render fonts.
     1.7 +
     1.8 +This version supports NO_SUBPIXEL_HINTING environment variable.
     2.1 --- a/freetype/receipt	Mon May 09 21:59:10 2016 +0300
     2.2 +++ b/freetype/receipt	Tue May 10 12:26:40 2016 +0200
     2.3 @@ -20,6 +20,9 @@
     2.4  	# Fix make install for version 2.6.1
     2.5  	patch -p1 -i $stuff/freetype261-install.patch
     2.6  
     2.7 +	# Optional old style fonts
     2.8 +	patch -p1 -i $stuff/NO_SUBPIXEL_HINTING.env.patch
     2.9 +
    2.10  	# Directives from LFS
    2.11  	sed -e "/AUX.*.gxvalid/s@^# @@" \
    2.12  	    -e "/AUX.*.otvalid/s@^# @@" \
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/freetype/stuff/NO_SUBPIXEL_HINTING.env.patch	Tue May 10 12:26:40 2016 +0200
     3.3 @@ -0,0 +1,20 @@
     3.4 +Source: https://projects.archlinux.org/svntogit/packages.git/tree/trunk/0004-Mask-subpixel-hinting-with-an-env-var.patch?h=packages/freetype2
     3.5 +This is edited version of patch.
     3.6 +
     3.7 +--- a/src/truetype/ttobjs.c
     3.8 ++++ b/src/truetype/ttobjs.c
     3.9 +@@ -1302,10 +1302,11 @@
    3.10 +     TT_Driver  driver = (TT_Driver)ttdriver;
    3.11 + 
    3.12 + #ifdef TT_CONFIG_OPTION_SUBPIXEL_HINTING
    3.13 +-    driver->interpreter_version = TT_INTERPRETER_VERSION_38;
    3.14 +-#else
    3.15 +-    driver->interpreter_version = TT_INTERPRETER_VERSION_35;
    3.16 ++    if ( getenv( "NO_SUBPIXEL_HINTING" ) )
    3.17 ++      driver->interpreter_version = TT_INTERPRETER_VERSION_35;
    3.18 ++    else
    3.19 + #endif
    3.20 ++      driver->interpreter_version = TT_INTERPRETER_VERSION_38;
    3.21 + 
    3.22 + #else /* !TT_USE_BYTECODE_INTERPRETER */
    3.23 + 
    3.24 \ No newline at end of file