From owner-freebsd-gnome@freebsd.org Fri May 4 10:02:32 2018 Return-Path: Delivered-To: freebsd-gnome@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 9AB41FA7FBA for ; Fri, 4 May 2018 10:02:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 346386EF70 for ; Fri, 4 May 2018 10:02:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id ECBA4FA7FB5; Fri, 4 May 2018 10:02:31 +0000 (UTC) Delivered-To: gnome@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 C8034FA7FB4 for ; Fri, 4 May 2018 10:02:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5F3066EF6D for ; Fri, 4 May 2018 10:02:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 91D6A10B9F for ; Fri, 4 May 2018 10:02:30 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w44A2UtR059553 for ; Fri, 4 May 2018 10:02:30 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w44A2UtC059552 for gnome@FreeBSD.org; Fri, 4 May 2018 10:02:30 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: gnome@FreeBSD.org Subject: [Bug 227761] print/freetype2: Fonts aren't correctly rendered with 2.9 Date: Fri, 04 May 2018 10:02:30 +0000 X-Bugzilla-Reason: CC AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: lightside@gmx.com X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: gnome@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? maintainer-feedback? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-gnome@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: GNOME for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 May 2018 10:02:32 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D227761 --- Comment #9 from lightside --- (In reply to Pascal Christen from comment #8) > Any impact when applying this patch? The disabled GPN port's option may disable FT_CONFIG_OPTION_POSTSCRIPT_NAMES define in include/freetype/config/ftoption.h file: https://git.savannah.gnu.org/cgit/freetype/freetype2.git/tree/include/freet= ype/config/ftoption.h?h=3DVER-2-9-1#n290 This may disable psnames module, which "is in charge of converting a glyph = name string into a Unicode value, or return a Macintosh standard glyph name for = the use with the TrueType `post' table" (from description of ftoption.h file): https://git.savannah.gnu.org/cgit/freetype/freetype2.git/tree/modules.cfg?h= =3DVER-2-9-1#n154 -8<-- # Support for PostScript glyph names. # # This module can be controlled in ftconfig.h # (FT_CONFIG_OPTION_POSTSCRIPT_NAMES). AUX_MODULES +=3D psnames -->8- https://git.savannah.gnu.org/cgit/freetype/freetype2.git/tree/src/psnames/p= smodule.c?h=3DVER-2-9-1#n47 etc. If you need to just use ImageMagick convert (or other) program, then, as intermediate solution, I may suggest to build libfreetype.so* without FT_CONFIG_OPTION_POSTSCRIPT_NAMES define in include/freetype/config/ftoptio= n.h file and use LD_PRELOAD environment variable for needed program (while ABI = is compatible): % env LD_PRELOAD=3Dpath/to/libfreetype.so convert file.pdf image.jpg For example, apply patch for print/freetype2 in attachment #193012 (as you already did, e.g. in some user's directory): % svn co -r 468892 https://svn.FreeBSD.org/ports/head/print/freetype2 % fetch -o freetype2.diff "https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D193012" <..> % cd freetype2 % svn patch ../freetype2.diff Then build without GPN option and copy libfreetype.* files to another locat= ion: % make WITHOUT=3DGPN stage <..> % ls work/stage/usr/local/lib/libfreetype* work/stage/usr/local/lib/libfreetype.a=20=20=20=20=20=20=20=20=20 work/stage/usr/local/lib/libfreetype.so.6 work/stage/usr/local/lib/libfreetype.so=20=20=20=20=20=20=20=20 work/stage/usr/local/lib/libfreetype.so.6.16.1 % mkdir ../freetype2_libs % cp -fp work/stage/usr/local/lib/libfreetype* ../freetype2_libs % make clean <..> The ../freetype2_libs will contain needed libfreetype.so library (and relat= ed files), in this case: % cd .. % fetch -o - "https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D193013"= | tar -xf - --include anonyme_visitenkarte.pdf % env LD_PRELOAD=3D./freetype2_libs/libfreetype.so convert -append anonyme_visitenkarte.pdf image.jpg As for overall issue, the affected commit is 75cb071b3fbfa2315c5d458fee2bb465a14568ae (according to git bisect): https://git.savannah.gnu.org/cgit/freetype/freetype2.git/commit/?id=3D75cb0= 71b3fbfa2315c5d458fee2bb465a14568ae --=20 You are receiving this mail because: You are on the CC list for the bug. You are the assignee for the bug.=