|
From: Don T. <dt...@to...> - 2007-02-21 18:18:45
|
New gd headers no longer #define S_ENC_UTF8
and thus break gd.trm. The following patch
lets it compile, but I am not sure it won't
break something. Probably someone who knows
about gd needs to figure out the real fix.
Don Taber
--- gd.trm.~1.110.~ 2007-02-09 04:00:48.000000000 -0800
+++ gd.trm 2007-02-21 10:04:56.000000000 -0800
@@ -1876,7 +1876,8 @@
#ifdef gdFTEX_Adobe_Custom
/* libgd defaults to UTF-8 encodings. We have limited options for */
/* over-riding this, but we can try */
- if (encoding != S_ENC_UTF8 && ENHgd_font && !strcmp(ENHgd_font,"Symbol")) {
+ //if (encoding != S_ENC_UTF8 && ENHgd_font && !strcmp(ENHgd_font,"Symbol")) {
+ if (ENHgd_font && !strcmp(ENHgd_font,"Symbol")) {
PNG_FONT_INFO.flags |= gdFTEX_CHARMAP;
PNG_FONT_INFO.charmap = gdFTEX_Adobe_Custom;
/* fprintf(stderr,"PNG_set_font: requesting a special charmap\n"); */
|