From owner-svn-ports-head@freebsd.org Mon Apr 2 19:38:40 2018 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 71A3DF80AE9; Mon, 2 Apr 2018 19:38:40 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 12F1E6DF32; Mon, 2 Apr 2018 19:38:40 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 02EAA19F76; Mon, 2 Apr 2018 19:38:40 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w32JcdNF051386; Mon, 2 Apr 2018 19:38:39 GMT (envelope-from bapt@FreeBSD.org) Received: (from bapt@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w32JcdZh051384; Mon, 2 Apr 2018 19:38:39 GMT (envelope-from bapt@FreeBSD.org) Message-Id: <201804021938.w32JcdZh051384@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: bapt set sender to bapt@FreeBSD.org using -f From: Baptiste Daroussin Date: Mon, 2 Apr 2018 19:38:39 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r466253 - in head/print/freetype2: . files X-SVN-Group: ports-head X-SVN-Commit-Author: bapt X-SVN-Commit-Paths: in head/print/freetype2: . files X-SVN-Commit-Revision: 466253 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Apr 2018 19:38:40 -0000 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 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 +Date: Wed, 10 Jan 2018 13:24:56 +0800 +Subject: [psaux] Correctly handle Flex features (#52846). + +* src/psaux/psintrp.c (cf2_interpT2CharString) : 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 ++ ++ [psaux] Correctly handle Flex features (#52846). ++ ++ * src/psaux/psintrp.c (cf2_interpT2CharString) : Do not move if doing Flex. ++ + 2018-01-09 Alexei Podtelezhnikov + + * 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 +