From owner-freebsd-gnome@freebsd.org Sat Aug 18 01:30:26 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 9851610817D0 for ; Sat, 18 Aug 2018 01:30:26 +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 553D07BCE6 for ; Sat, 18 Aug 2018 01:30:26 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 1A4C410817CA; Sat, 18 Aug 2018 01:30:26 +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 EC7A810817C8 for ; Sat, 18 Aug 2018 01:30:25 +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 AF1117BCE1 for ; Sat, 18 Aug 2018 01:30:25 +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 DEE63247A1 for ; Sat, 18 Aug 2018 01:30:24 +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 w7I1UOYf045577 for ; Sat, 18 Aug 2018 01:30:24 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w7I1UOuh045576 for gnome@FreeBSD.org; Sat, 18 Aug 2018 01:30:24 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: Sat, 18 Aug 2018 01:30:24 +0000 X-Bugzilla-Reason: AssignedTo CC 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: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: gnome@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? maintainer-feedback? X-Bugzilla-Changed-Fields: attachments.created 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.27 Precedence: list List-Id: GNOME for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Aug 2018 01:30:26 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D227761 --- Comment #36 from lightside --- Created attachment 196303 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D196303&action= =3Dedit The freetype2 debug output for test_empty.pdf (Ghostscript 9.23) (In reply to comment #35) > Ok, I just created an unencrypted and cleaned pdf with using the font > "AgfaRotisSansSerif" The (automated) git bisect have found the same 75cb071b3fbfa2315c5d458fee2bb465a14568ae commit for test_empty.pdf file in attachment #196273 (see comment #3 for git bisect log). Used following changes for test.sh in attachment #194200: -8<-- <..> TEST_SOURCE=3D${WRKSRC}/../test_empty.pdf <..> expected_checksum=3D"99ceb7731c525cdd6163c662e80dccff0ed0f80192dc428a529ef4= 9c75a932d2" <..> do_build_test() { env LD_PRELOAD=3D./objs/.libs/libfreetype.so convert -alpha remove ${TEST_SOURCE} ${TEST_OUTPUT} check_errors "$1" } <..> -->8- Some (intermediate) solution was to comment FT_CONFIG_OPTION_POSTSCRIPT_NAM= ES define for include/freetype/config/ftoption.h (see comment #9): % sed -i '.gpn.bak' -e 's|^\(#define FT_CONFIG_OPTION_POSTSCRIPT_NAMES.*\)|= /* \1 */|' include/freetype/config/ftoption.h Attached freetype2 debug output (with using FT2_DEBUG=3D"any:5" environment variable) for VER-2.8: http://git.savannah.gnu.org/cgit/freetype/freetype2.git/tag/?h=3DVER-2-8 VER-2.9.1: http://git.savannah.gnu.org/cgit/freetype/freetype2.git/tag/?h=3DVER-2-9-1 and current master commit VER-2-9-1-183-gc94162a22: http://git.savannah.gnu.org/cgit/freetype/freetype2.git/commit/?id=3Dc94162= a2200c16e9614289cf91d6bf0e0b01a01f Some difference between VER-2-8 (where it worked) and VER-2-9 (VER-2-9-1-183-gc94162a22) for 5.txt output was: -8<-- tt_face_lookup_table: 0x807869da8, `CBLC' -- could not find table tt_face_lookup_table: 0x807869da8, `CBDT' -- could not find table -->8- --- Commands to create freetype2 debug output (after git checkout for needed commit) was: -8<-- % setenv OUTPUT `git describe` % echo $OUTPUT % mkdir -p ../output/$OUTPUT % ../test.sh build <..> % git show -s --format=3D"# %s%n# https://git.savannah.gnu.org/cgit/freetype/freetype2.git/commit/?id=3D%H" > ../output/$OUTPUT/commit.txt % env FT2_DEBUG=3D"any:5" LD_PRELOAD=3D./objs/.libs/libfreetype.so sh -c "c= onvert -alpha remove ../test_empty.pdf image.jpg 2>&1 | tee ../output/$OUTPUT/5.tx= t" <..> % cp -p image.jpg ../output/$OUTPUT/ % ../test.sh clean -->8-- To Pascal Christen: I guess, you can try to share test_empty.pdf file in attachment #196273 with related developers. If you want, you can try to continue discussion on: https://savannah.nongnu.org/bugs/?53739 As far as I know, the accepted solution for changes in 75cb071b3fbfa2315c5d458fee2bb465a14568ae wasn't found in this PR. Only suggestions to directly use gs or pdftoppm program, instead of convert= , or comment FT_CONFIG_OPTION_POSTSCRIPT_NAMES define for include/freetype/config/ftoption.h before freetype2 build, e.g. for custom libfreetype.so library and env LD_PRELOAD=3Dpath/to/libfreetype.so usage for convert program (see comment #9). --=20 You are receiving this mail because: You are the assignee for the bug. You are on the CC list for the bug.=