Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 04 May 2018 10:02:30 +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-PQ9uEdb0hP@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 #9 from lightside <lightside@gmx.com> ---
(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.=



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