freetype: enable subpixel hinting and table validation.
This commit is contained in:
22
srcpkgs/freetype/patches/subpixel.patch
Normal file
22
srcpkgs/freetype/patches/subpixel.patch
Normal file
@@ -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 )
|
||||
|
||||
|
||||
/*************************************************************************/
|
||||
20
srcpkgs/freetype/patches/validate.patch
Normal file
20
srcpkgs/freetype/patches/validate.patch
Normal file
@@ -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.
|
||||
#
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user