Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 Aug 2018 01:30:24 +0000
From:      bugzilla-noreply@freebsd.org
To:        gnome@FreeBSD.org
Subject:   [Bug 227761] print/freetype2: Fonts aren't correctly rendered with 2.9
Message-ID:  <bug-227761-6497-djZ7uZSXEW@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-227761-6497@https.bugs.freebsd.org/bugzilla/>
References:  <bug-227761-6497@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D227761

--- Comment #36 from lightside <lightside@gmx.com> ---
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.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-227761-6497-djZ7uZSXEW>