Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 363367

Summary: media-libs/gd fails to find fonts via fontconfig
Product: Gentoo Linux Reporter: genbug
Component: New packagesAssignee: Gentoo Graphics Project <graphics+disabled>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description genbug 2011-04-12 19:31:52 UTC
gentoo has fontconfig option for gd but it does not work due a bug that has been known for a year or two.

here's the fix, suggest it is included in portage.

--- gd-2.0.36/gdft.c    2008-03-09 16:05:52.000000000 -0700
+++ gd-2.0.36-mod/gdft.c        2009-05-20 20:22:13.000000000 -0700
@@ -1661,7 +1661,7 @@ static char * font_path(char **fontpath,
 BGD_DECLARE(int) gdFTUseFontConfig(int flag)
 {
 #ifdef HAVE_LIBFONTCONFIG
-       fontConfigFlag = 1;
+       fontConfigFlag = flag;
        return 1;
 #else
        return 0;
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2011-04-12 19:39:34 UTC
Got an upstream link?
Comment 2 SpanKY gentoo-dev 2011-04-12 20:27:29 UTC
yeah, you need to provide real details
Comment 3 Rafał Mużyło 2011-04-12 22:16:28 UTC
Well, not my bug, but:
the commit: https://bitbucket.org/pierrejoye/gd-libgd/changeset/3ea283efcdaf

Though I'm not sure if that's the proper upstream.
OTOH, I can't google anything better.
Comment 4 SpanKY gentoo-dev 2011-04-13 06:32:53 UTC
yes, that is the official upstream repo.  so urls to that are sufficient.

ive added that patch to gd-2.0.35-r3 ... thanks !
Comment 5 genbug 2011-04-13 06:39:26 UTC
Thanks for spanking this bug. ;)