Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 363367 - media-libs/gd fails to find fonts via fontconfig
Summary: media-libs/gd fails to find fonts via fontconfig
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Graphics Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-12 19:31 UTC by genbug
Modified: 2011-04-13 06:39 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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. ;)