Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 05 May 2018 19:30:45 +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-5V11J4N3rh@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

lightside <lightside@gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #193039|0                           |1
        is obsolete|                            |

--- Comment #10 from lightside <lightside@gmx.com> ---
Created attachment 193066
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D193066&action=
=3Dedit
The freetype2 debug output for ImageMagick convert program

Created debugging output for 2b3e0ef6c095cf6ea920e95fc9826dc39694162a commi=
t:
http://git.savannah.gnu.org/cgit/freetype/freetype2.git/commit/?id=3D2b3e0e=
f6c095cf6ea920e95fc9826dc39694162a
-8<--
% echo $FREETYPE_PROPERTIES
FREETYPE_PROPERTIES: Undefined variable.
% pkg info fontconfig | grep -e ^Version -e ^Options -e ": on" -e ": off"
Version        : 2.12.6,1
Options        :
        DOCS           : on
        HINTING_FULL   : off
        HINTING_MEDIUM : off
        HINTING_NONE   : off
        HINTING_SLIGHT : on
        NO_BITMAPS     : off
% cat ${HOME}/.config/fontconfig/fonts.conf
<?xml version=3D'1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
        <match target=3D"font">
                <edit mode=3D"assign" name=3D"rgba">
                        <const>rgb</const>
                </edit>
        </match>
        <match target=3D"font">
                <edit mode=3D"assign" name=3D"hinting">
                        <bool>true</bool>
                </edit>
        </match>
        <match target=3D"font">
                <edit mode=3D"assign" name=3D"hintstyle">
                        <const>hintslight</const>
                </edit>
        </match>
        <match target=3D"font">
                <edit mode=3D"assign" name=3D"antialias">
                        <bool>true</bool>
                </edit>
        </match>
        <match target=3D"font">
                <edit mode=3D"assign" name=3D"lcdfilter">
                  <const>lcddefault</const>
                </edit>
        </match>
        <match target=3D"pattern">
                <test qual=3D"any" name=3D"size" compare=3D"less_eq">
                        <int>12</int>
                </test>
                <edit name=3D"antialias" mode=3D"assign">
                        <bool>false</bool>
                </edit>
        </match>
</fontconfig>
% git describe
VER-2-9-1-3-g2b3e0ef6c
% setenv OUTPUT `git describe`
% echo $OUTPUT
VER-2-9-1-3-g2b3e0ef6c
% ../test.sh build
<..>
% ../test.sh test
81d778f88b71adbd4d99f9b405d53779042d02043bacd8f94f76d690e6ec1600
not match
% mkdir -p ../output/$OUTPUT
% git show -s
--format=3D"%s%nhttps://git.savannah.gnu.org/cgit/freetype/freetype2.git/co=
mmit/?id=3D%H"
Support symbol visibility features of Sun / Oracle C compilers. Reported by
Kiyoshi Kanazawa:
https://lists.gnu.org/archive/html/freetype-devel/2018-05/msg00008.html Tha=
nks
to the suggestions by Alexei and Alan Coopersmith.
https://git.savannah.gnu.org/cgit/freetype/freetype2.git/commit/?id=3D2b3e0=
ef6c095cf6ea920e95fc9826dc39694162a
% git show -s --format=3D"# %s%n#
https://git.savannah.gnu.org/cgit/freetype/freetype2.git/commit/?id=3D%H" >
../output/$OUTPUT/commit.txt
% seq 5 | xargs -I {} -L 1 env FT2_DEBUG=3D"any:{}"
LD_PRELOAD=3D./objs/.libs/libfreetype.so sh -c "convert -append
../anonyme_visitenkarte.pdf image.jpg 2>&1 | tee ../output/$OUTPUT/{}.txt"
<..>
% ../test.sh clean
-->8-

Added VER-2-9-1-3-g2b3e0ef6c directory to debug_output.tar.bz2 archive from
attachment #193039.

Some comments to "Sat 05 May 2018 06:54:13 AM UTC" on
https://savannah.nongnu.org/bugs/?53739#comment5:
Need to note, that so called testing environment (attachment #193036) was
created on FreeBSD (10.3, 10.4) and tested for /bin/sh in FreeBSD base:
https://www.freebsd.org/cgi/man.cgi?query=3Dsh&apropos=3D0&sektion=3D0&manp=
ath=3DFreeBSD+10.4-RELEASE&arch=3Ddefault&format=3Dhtml
% sha256 /bin/sh
SHA256 (/bin/sh) =3D
ea533f9919285db456d647dade105846af9ba6d2638dee1f7ffe43c51460fef3

Also, I didn't propose to comment FT_CONFIG_OPTION_POSTSCRIPT_NAMES define =
in
include/freetype/config/ftoption.h file as a solution for upstream. This is
just a so called "workaround" (or an intermediate solution, because the
disabled GPN option is not default (i.e. OPTIONS_DEFAULT+=3DGPN in attachme=
nt
#193012) for print/freetype2 port), based on changes in
75cb071b3fbfa2315c5d458fee2bb465a14568ae commit:
https://git.savannah.gnu.org/cgit/freetype/freetype2.git/commit/?id=3D75cb0=
71b3fbfa2315c5d458fee2bb465a14568ae

I just showed some examples about how to possibly debug print/freetype2 por=
t on
FreeBSD for this PR. Also shared some testing environment (and results), wh=
ich
I used for git bisect run, and asked about whether (disabled)
FT_CONFIG_OPTION_POSTSCRIPT_NAMES define affects this issue for PR's
reporter(s).

Thanks for attention.

--=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-5V11J4N3rh>