#1 Correctly enable subpixel rendering for ClearType functionality
Merged 9 months ago by mkasik. Opened 9 months ago by ngompa.
rpms/ ngompa/freetype enable-spr-fully  into  master

@@ -0,0 +1,11 @@ 

+ --- freetype-2.3.0/include/freetype/config/ftoption.h.spf	2007-01-18 14:27:34.000000000 -0500

+ +++ freetype-2.3.0/include/freetype/config/ftoption.h	2007-01-18 14:27:48.000000000 -0500

+ @@ -92,7 +92,7 @@

+    /* rendering technology that produces excellent output without LCD       */

+    /* filtering.                                                            */

+    /*                                                                       */

+ -/* #define FT_CONFIG_OPTION_SUBPIXEL_RENDERING */

+ +#define FT_CONFIG_OPTION_SUBPIXEL_RENDERING

+  

+  

+    /*************************************************************************/

file modified
+8 -1

@@ -3,7 +3,7 @@ 

  Summary: A free and portable font rendering engine

  Name: freetype

  Version: 2.9.1

- Release: 4%{?dist}

+ Release: 5%{?dist}

  License: (FTL or GPLv2+) and BSD and MIT and Public Domain and zlib with acknowledgement

  Group: System Environment/Libraries

  URL: http://www.freetype.org

@@ -12,6 +12,8 @@ 

  Source2: http://download.savannah.gnu.org/releases/freetype/ft2demos-%{version}.tar.bz2

  Source3: ftconfig.h

  

+ # Enable subpixel rendering (ClearType)

+ Patch0:  freetype-2.3.0-enable-spr.patch

  # Enable otvalid and gxvalid modules

  Patch1:  freetype-2.2.1-enable-valid.patch

  # Enable additional demos

@@ -30,6 +32,7 @@ 

  BuildRequires: bzip2-devel

  

  Provides: %{name}-bytecode

+ Provides: %{name}-subpixel

  

  %description

  The FreeType engine is a free and portable font rendering

@@ -69,6 +72,7 @@ 

  %prep

  %setup -q -b 1 -a 2

  

+ %patch0  -p1 -b .enable-spr

  %patch1  -p1 -b .enable-valid

  

  pushd ft2demos-%{version}

@@ -190,6 +194,9 @@ 

  %{_mandir}/man1/*

  

  %changelog

+ * Wed Oct 31 2018 Neal Gompa <ngompa13@gmail.com> - 2.9.1-5

+ - Correctly enable subpixel rendering for ClearType functionality

+ 

  * Mon Oct 29 2018 Marek Kasik <mkasik@redhat.com> - 2.9.1-4

  - Enable ClearType code thanks to Microsoft joining OIN

  

This was accidentally fully disabled instead of enabled properly.

Let's do this correctly this time.

This partially reverts commit 6814287.

Pull-Request has been merged by mkasik

9 months ago

Thank you for fixing this.

@mkasik No problem. But can we also have this for Fedora 28 and 29?