forked from pool/freetype2
Accepting request 644923 from home:hellcp:branches:M17N
- Add subpixel rendering due to Microsoft joining OIN https://lists.opensuse.org/opensuse-factory/2018-10/msg00325.html OBS-URL: https://build.opensuse.org/request/show/644923 OBS-URL: https://build.opensuse.org/package/show/M17N/freetype2?expand=0&rev=151
This commit is contained in:
parent
17d1bfe18d
commit
563b3db60c
15
enable-infinality-subpixel-hinting.patch
Normal file
15
enable-infinality-subpixel-hinting.patch
Normal file
@ -0,0 +1,15 @@
|
||||
Index: include/freetype/config/ftoption.h
|
||||
===================================================================
|
||||
--- include/freetype/config/ftoption.h.orig
|
||||
+++ include/freetype/config/ftoption.h
|
||||
@@ -654,8 +654,8 @@ FT_BEGIN_HEADER
|
||||
/* [1] 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 )
|
||||
|
||||
|
||||
/*************************************************************************/
|
13
enable-subpixel-rendering.patch
Normal file
13
enable-subpixel-rendering.patch
Normal file
@ -0,0 +1,13 @@
|
||||
Index: include/freetype/config/ftoption.h
|
||||
===================================================================
|
||||
--- include/freetype/config/ftoption.h.orig
|
||||
+++ include/freetype/config/ftoption.h
|
||||
@@ -118,7 +118,7 @@ FT_BEGIN_HEADER
|
||||
/* rendering technology that produces excellent output without LCD */
|
||||
/* filtering. */
|
||||
/* */
|
||||
-/* #define FT_CONFIG_OPTION_SUBPIXEL_RENDERING */
|
||||
+#define FT_CONFIG_OPTION_SUBPIXEL_RENDERING
|
||||
|
||||
|
||||
/*************************************************************************/
|
@ -41,6 +41,8 @@ BuildRequires: zlib-devel
|
||||
%ifarch ppc64
|
||||
Obsoletes: freetype2-64bit
|
||||
%endif
|
||||
Patch100: enable-subpixel-rendering.patch
|
||||
Patch101: enable-infinality-subpixel-hinting.patch
|
||||
|
||||
%description
|
||||
This library features TrueType fonts for open source projects. This
|
||||
@ -98,6 +100,9 @@ It also contains a small tutorial for using that library.
|
||||
%patch1 -p1
|
||||
%patch2 -p1
|
||||
|
||||
%patch100
|
||||
%patch101
|
||||
|
||||
%build
|
||||
export CFLAGS="%{optflags} -std=gnu99 -D_GNU_SOURCE $(getconf LFS_CFLAGS)"
|
||||
%configure \
|
||||
|
Loading…
Reference in New Issue
Block a user