From 9e3653da21d0929d2c5645ca7c212e5b46c7d07d Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Mon, 5 Dec 2016 23:38:21 +0100 Subject: [PATCH] freetype: enable subpixel hinting and table validation. --- srcpkgs/freetype/patches/subpixel.patch | 22 ++++++++++++++++++++++ srcpkgs/freetype/patches/validate.patch | 20 ++++++++++++++++++++ srcpkgs/freetype/template | 2 +- 3 files changed, 43 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/freetype/patches/subpixel.patch create mode 100644 srcpkgs/freetype/patches/validate.patch diff --git a/srcpkgs/freetype/patches/subpixel.patch b/srcpkgs/freetype/patches/subpixel.patch new file mode 100644 index 00000000000..d30fc472d9c --- /dev/null +++ b/srcpkgs/freetype/patches/subpixel.patch @@ -0,0 +1,22 @@ +--- include/freetype/config/ftoption.h.orig ++++ include/freetype/config/ftoption.h +@@ -122,7 +122,7 @@ + /* This is done to allow FreeType clients to run unmodified, forcing */ + /* them to display normal gray-level anti-aliased glyphs. */ + /* */ +-/* #define FT_CONFIG_OPTION_SUBPIXEL_RENDERING */ ++#define FT_CONFIG_OPTION_SUBPIXEL_RENDERING + + + /*************************************************************************/ +@@ -675,8 +675,8 @@ + /* [1] http://www.microsoft.com/typography/cleartype/truetypecleartype.aspx */ + /* */ + /* #define TT_CONFIG_OPTION_SUBPIXEL_HINTING 1 */ +-#define TT_CONFIG_OPTION_SUBPIXEL_HINTING 2 +-/* #define TT_CONFIG_OPTION_SUBPIXEL_HINTING ( 1 | 2 ) */ ++/* #define TT_CONFIG_OPTION_SUBPIXEL_HINTING 2 */ ++#define TT_CONFIG_OPTION_SUBPIXEL_HINTING ( 1 | 2 ) + + + /*************************************************************************/ diff --git a/srcpkgs/freetype/patches/validate.patch b/srcpkgs/freetype/patches/validate.patch new file mode 100644 index 00000000000..39b22f67af5 --- /dev/null +++ b/srcpkgs/freetype/patches/validate.patch @@ -0,0 +1,20 @@ +--- modules.cfg.orig ++++ modules.cfg +@@ -120,7 +120,7 @@ + # TrueType GX/AAT table validation. Needs ftgxval.c below. + # + # No FT_CONFIG_OPTION_PIC support. +-# AUX_MODULES += gxvalid ++AUX_MODULES += gxvalid + + # Support for streams compressed with gzip (files with suffix .gz). + # +@@ -143,7 +143,7 @@ + # OpenType table validation. Needs ftotval.c below. + # + # No FT_CONFIG_OPTION_PIC support. +-# AUX_MODULES += otvalid ++AUX_MODULES += otvalid + + # Auxiliary PostScript driver component to share common code. + # diff --git a/srcpkgs/freetype/template b/srcpkgs/freetype/template index d62412e0f45..df61e357129 100644 --- a/srcpkgs/freetype/template +++ b/srcpkgs/freetype/template @@ -1,7 +1,7 @@ # Template build file 'freetype'. pkgname=freetype version=2.7 -revision=2 +revision=3 build_style=gnu-configure hostmakedepends="pkg-config" makedepends="zlib-devel bzip2-devel libpng-devel"