svn commit: r466253 - in head/print/freetype2: . files
Baptiste Daroussin
bapt at FreeBSD.org
Mon Apr 2 19:38:40 UTC 2018
Author: bapt
Date: Mon Apr 2 19:38:39 2018
New Revision: 466253
URL: https://svnweb.freebsd.org/changeset/ports/466253
Log:
Incorporate a patch from uptream
Remove the LCD filtering option, now freetype2 offers by default a LCD optimized
output, no need to keep the old LCD filtering option (keeping it off may confuse
users) and let freetype2 use the new "Harmony LCD rendering"
Thanks jbeich for pointing me at the PR I missed.
PR: 225072
Submitted by: lightside <lightside at gmx.com>
Added:
head/print/freetype2/files/correct-flex-features.patch (contents, props changed)
Modified:
head/print/freetype2/Makefile
Modified: head/print/freetype2/Makefile
==============================================================================
--- head/print/freetype2/Makefile Mon Apr 2 19:35:21 2018 (r466252)
+++ head/print/freetype2/Makefile Mon Apr 2 19:38:39 2018 (r466253)
@@ -3,6 +3,7 @@
PORTNAME= freetype2
PORTVERSION= 2.9
+PORTREVISION= 1
CATEGORIES= print
MASTER_SITES= http://savannah.nongnu.org/download/freetype/ \
SF/freetype/${PORTNAME}/${PORTVERSION:C/^([0-9]+\.[0-9]+\.[0-9]+).*/\1/}/ \
@@ -36,27 +37,26 @@ PORTDOCS= reference CHANGES formats.txt LICENSE.TXT ra
CPE_PRODUCT= freetype
CPE_VENDOR= freetype
-OPTIONS_DEFINE= DEBUG DOCS LCD_FILTERING LONG_PCF_NAMES PNG \
+OPTIONS_DEFINE= DEBUG DOCS LONG_PCF_NAMES PNG \
TABLE_VALIDATION
OPTIONS_GROUP= SUBPIXEL_HINTING
OPTIONS_GROUP_SUBPIXEL_HINTING= V38 V40
OPTIONS_RADIO= SIZE_METRICS_CHOICE
OPTIONS_RADIO_SIZE_METRICS_CHOICE= FIX_SIZE_METRICS TT_SIZE_METRICS
-OPTIONS_DEFAULT= LCD_FILTERING V40
+OPTIONS_DEFAULT= V40
PNG_DESC= Png compressed OpenType embedded bitmaps support
PNG_LIB_DEPENDS= libpng.so:graphics/png
PNG_CONFIGURE_WITH= png
+EXTRA_PATCHES= ${FILESDIR}/correct-flex-features.patch:-p1
+
TABLE_VALIDATION_DESC= TrueType GX/AAT and OpenType table validation
SIZE_METRICS_CHOICE_DESC= Size metrics for TrueType fonts
FIX_SIZE_METRICS_DESC= Fix metrics on size request for scalable fonts (alternative method)
FIX_SIZE_METRICS_EXTRA_PATCHES= ${FILESDIR}/extra-patch-fix_size_metrics.diff
TT_SIZE_METRICS_DESC= TrueType-like size metrics for 'light' auto-hinting
-
-LCD_FILTERING_DESC?= Sub-pixel rendering (patented)
-LCD_FILTERING_CFLAGS= -DFT_CONFIG_OPTION_SUBPIXEL_RENDERING
LONG_PCF_NAMES_DESC= Enable long PCF family names
Added: head/print/freetype2/files/correct-flex-features.patch
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/print/freetype2/files/correct-flex-features.patch Mon Apr 2 19:38:39 2018 (r466253)
@@ -0,0 +1,54 @@
+From cc2f3cdecff5a351e7e8961b9f2e389ab740231a Mon Sep 17 00:00:00 2001
+From: Ewald Hew <ewaldhew at gmail.com>
+Date: Wed, 10 Jan 2018 13:24:56 +0800
+Subject: [psaux] Correctly handle Flex features (#52846).
+
+* src/psaux/psintrp.c (cf2_interpT2CharString) <cf2_cmdVMOVETO,
+cf2_cmdHMOVETO>: Do not move if doing Flex.
+---
+ ChangeLog | 7 +++++++
+ src/psaux/psintrp.c | 6 ++++--
+ 2 files changed, 11 insertions(+), 2 deletions(-)
+
+diff --git a/ChangeLog b/ChangeLog
+index 1343401..96359ee 100644
+--- a/ChangeLog
++++ b/ChangeLog
+@@ -1,3 +1,10 @@
++2018-01-10 Ewald Hew <ewaldhew at gmail.com>
++
++ [psaux] Correctly handle Flex features (#52846).
++
++ * src/psaux/psintrp.c (cf2_interpT2CharString) <cf2_cmdVMOVETO,
++ cf2_cmdHMOVETO>: Do not move if doing Flex.
++
+ 2018-01-09 Alexei Podtelezhnikov <apodtele at gmail.com>
+
+ * builds/windows/vc2010/freetype.sln: Synchronize with the project.
+diff --git a/src/psaux/psintrp.c b/src/psaux/psintrp.c
+index 5c0ee78..da5a8da 100644
+--- a/src/psaux/psintrp.c
++++ b/src/psaux/psintrp.c
+@@ -852,7 +852,8 @@
+
+ curY = ADD_INT32( curY, cf2_stack_popFixed( opStack ) );
+
+- cf2_glyphpath_moveTo( &glyphPath, curX, curY );
++ if ( !decoder->flex_state )
++ cf2_glyphpath_moveTo( &glyphPath, curX, curY );
+
+ break;
+
+@@ -2674,7 +2675,8 @@
+
+ curX = ADD_INT32( curX, cf2_stack_popFixed( opStack ) );
+
+- cf2_glyphpath_moveTo( &glyphPath, curX, curY );
++ if ( !decoder->flex_state )
++ cf2_glyphpath_moveTo( &glyphPath, curX, curY );
+
+ break;
+
+--
+cgit v1.0-41-gc330
+
More information about the svn-ports-all
mailing list