added patches to enable subpixel rendering, infinality subpixel hinting, long pcf family names, table validation modules [release 2.10.4-2mamba;Tue Jan 12 2021]
This commit is contained in:
parent
09d56d9e35
commit
ca43fc8b73
24
libfreetype-2.10.4-enable-infinality-subpixel-hinting.patch
Normal file
24
libfreetype-2.10.4-enable-infinality-subpixel-hinting.patch
Normal file
@ -0,0 +1,24 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: "Jan Alexander Steffens (heftig)" <jan.steffens@gmail.com>
|
||||
Date: Mon, 29 Aug 2016 08:43:10 +0200
|
||||
Subject: [PATCH] Enable infinality subpixel hinting
|
||||
|
||||
---
|
||||
include/freetype/config/ftoption.h | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/include/freetype/config/ftoption.h b/include/freetype/config/ftoption.h
|
||||
index e5de62e35..acb4d6d6a 100644
|
||||
--- a/include/freetype/config/ftoption.h
|
||||
+++ b/include/freetype/config/ftoption.h
|
||||
@@ -672,8 +672,8 @@ FT_BEGIN_HEADER
|
||||
* https://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 )
|
||||
|
||||
|
||||
/**************************************************************************
|
22
libfreetype-2.10.4-enable-long-PCF-family-names.patch
Normal file
22
libfreetype-2.10.4-enable-long-PCF-family-names.patch
Normal file
@ -0,0 +1,22 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: "Jan Alexander Steffens (heftig)" <jan.steffens@gmail.com>
|
||||
Date: Sun, 14 May 2017 18:09:31 +0200
|
||||
Subject: [PATCH] Enable long PCF family names
|
||||
|
||||
---
|
||||
include/freetype/config/ftoption.h | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/include/freetype/config/ftoption.h b/include/freetype/config/ftoption.h
|
||||
index acb4d6d6a..efa13b9c6 100644
|
||||
--- a/include/freetype/config/ftoption.h
|
||||
+++ b/include/freetype/config/ftoption.h
|
||||
@@ -861,7 +861,7 @@ FT_BEGIN_HEADER
|
||||
* If this option is activated, it can be controlled with the
|
||||
* `no-long-family-names` property of the 'pcf' driver module.
|
||||
*/
|
||||
-/* #define PCF_CONFIG_OPTION_LONG_FAMILY_NAMES */
|
||||
+#define PCF_CONFIG_OPTION_LONG_FAMILY_NAMES
|
||||
|
||||
|
||||
/*************************************************************************/
|
22
libfreetype-2.10.4-enable-subpixel-rendering.patch
Normal file
22
libfreetype-2.10.4-enable-subpixel-rendering.patch
Normal file
@ -0,0 +1,22 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: "Jan Alexander Steffens (heftig)" <jan.steffens@gmail.com>
|
||||
Date: Tue, 23 Jun 2015 08:43:07 +0200
|
||||
Subject: [PATCH] Enable subpixel rendering
|
||||
|
||||
---
|
||||
include/freetype/config/ftoption.h | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/include/freetype/config/ftoption.h b/include/freetype/config/ftoption.h
|
||||
index 097f19b8a..e5de62e35 100644
|
||||
--- a/include/freetype/config/ftoption.h
|
||||
+++ b/include/freetype/config/ftoption.h
|
||||
@@ -124,7 +124,7 @@ FT_BEGIN_HEADER
|
||||
* When this macro is not defined, FreeType offers alternative LCD
|
||||
* rendering technology that produces excellent output.
|
||||
*/
|
||||
-/* #define FT_CONFIG_OPTION_SUBPIXEL_RENDERING */
|
||||
+#define FT_CONFIG_OPTION_SUBPIXEL_RENDERING
|
||||
|
||||
|
||||
/**************************************************************************
|
42
libfreetype-2.10.4-enable-table-validation-modules.patch
Normal file
42
libfreetype-2.10.4-enable-table-validation-modules.patch
Normal file
@ -0,0 +1,42 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: "Jan Alexander Steffens (heftig)" <jan.steffens@gmail.com>
|
||||
Date: Tue, 23 Jun 2015 08:40:29 +0200
|
||||
Subject: [PATCH] Enable table validation modules
|
||||
|
||||
---
|
||||
modules.cfg | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/modules.cfg b/modules.cfg
|
||||
index d6cdbe523..181f91541 100644
|
||||
--- a/modules.cfg
|
||||
+++ b/modules.cfg
|
||||
@@ -111,26 +111,26 @@ AUX_MODULES += cache
|
||||
|
||||
# TrueType GX/AAT table validation. Needs `ftgxval.c' below.
|
||||
#
|
||||
-# AUX_MODULES += gxvalid
|
||||
+AUX_MODULES += gxvalid
|
||||
|
||||
# Support for streams compressed with gzip (files with suffix .gz).
|
||||
#
|
||||
# See include/freetype/ftgzip.h for the API.
|
||||
AUX_MODULES += gzip
|
||||
|
||||
# Support for streams compressed with LZW (files with suffix .Z).
|
||||
#
|
||||
# See include/freetype/ftlzw.h for the API.
|
||||
AUX_MODULES += lzw
|
||||
|
||||
# Support for streams compressed with bzip2 (files with suffix .bz2).
|
||||
#
|
||||
# See include/freetype/ftbzip2.h for the API.
|
||||
AUX_MODULES += bzip2
|
||||
|
||||
# OpenType table validation. Needs `ftotval.c' below.
|
||||
#
|
||||
-# AUX_MODULES += otvalid
|
||||
+AUX_MODULES += otvalid
|
||||
|
||||
# Auxiliary PostScript driver component to share common code.
|
||||
#
|
@ -2,7 +2,7 @@
|
||||
%define enable_subpixel_rendering 1
|
||||
Name: libfreetype
|
||||
Version: 2.10.4
|
||||
Release: 1mamba
|
||||
Release: 2mamba
|
||||
Summary: Free TrueType font rasterizer library
|
||||
Vendor: openmamba
|
||||
Distribution: openmamba
|
||||
@ -10,6 +10,10 @@ Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||
Group: System/Libraries
|
||||
URL: http://www.freetype.org
|
||||
Source: https://downloads.sourceforge.net/freetype/freetype-%{version}.tar.xz
|
||||
Patch0: libfreetype-2.10.4-enable-subpixel-rendering.patch
|
||||
Patch1: libfreetype-2.10.4-enable-infinality-subpixel-hinting.patch
|
||||
Patch2: libfreetype-2.10.4-enable-long-PCF-family-names.patch
|
||||
Patch3: libfreetype-2.10.4-enable-table-validation-modules.patch
|
||||
License: GPL
|
||||
## AUTOBUILDREQ-BEGIN
|
||||
BuildRequires: glibc-devel
|
||||
@ -56,20 +60,12 @@ This package is only needed if you intend to develop or compile applications whi
|
||||
|
||||
%prep
|
||||
%setup -q -n freetype-%{version}
|
||||
%patch0 -p1
|
||||
%patch1 -p1
|
||||
%patch2 -p1
|
||||
%patch3 -p1
|
||||
|
||||
%build
|
||||
#%if "%{?enable_bytecode_interpreter}" == "1"
|
||||
# activate a bytecode interpreter in the TrueType driver
|
||||
#sed -i "s|/\* \(#define.*TT_CONFIG_OPTION_BYTECODE_INTERPRETER\).*|\1|" \
|
||||
# include/freetype/config/ftoption.h
|
||||
#%endif
|
||||
|
||||
#%if "%{?enable_subpixel_rendering}" == "1"
|
||||
## activate sub-pixel hinting
|
||||
#sed -i "s|/\* \(#define.*FT_CONFIG_OPTION_SUBPIXEL_RENDERING\).*|\1|" \
|
||||
# include/freetype/config/ftoption.h
|
||||
#%endif
|
||||
|
||||
%configure \
|
||||
--enable-freetype-config \
|
||||
--disable-static
|
||||
@ -135,6 +131,9 @@ ln -s freetype2 %{buildroot}%{_includedir}/freetype
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
* Tue Jan 12 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 2.10.4-2mamba
|
||||
- added patches to enable subpixel rendering, infinality subpixel hinting, long pcf family names, table validation modules
|
||||
|
||||
* Tue Oct 20 2020 Automatic Build System <autodist@mambasoft.it> 2.10.4-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user