|
From: Ethan M. <merritt@u.washington.edu> - 2009-04-13 20:51:14
|
I wrote>
> In fact, contrary to the documentation, passing 0 to gdFTUseFontConfig()
> seems to enable fontconfig all by itself, so it is unsafe to use this for
> a test either.
>
> Is that correct?
> If so, is there a work-around?
> Can we expect a fix?
And here is the fix, courtesy of Mojca Miklavec.
Tested using gnuplot and "set term png font '...'"
Can this please be included in 2.0.36?
regards,
Ethan
--- gdft.c.sav 2009-04-13 13:38:18.000000000 -0700
+++ gdft.c 2009-04-13 13:38:52.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;
--
Ethan A Merritt
Biomolecular Structure Center
University of Washington, Seattle 98195-7742
|