void gdgen_text(gdImagePtr im, pointf spf, pointf epf, int fontcolor, double fontsize, int fontdpi, double fontangle, char *fontname, unsigned char *str)
{
- int brect[8];
gdFTStringExtra strex;
point sp, ep; /* start point, end point, in pixels */
- char *err;
PF2P(spf, sp);
PF2P(epf, ep);
gdImageLine(im, sp.x, sp.y, ep.x, ep.y, fontcolor);
} else {
#ifdef HAVE_GD_FREETYPE
+ char *err;
+ int brect[8];
#ifdef HAVE_GD_FONTCONFIG
char* fontlist = fontname;
#else
gdImagePtr im = (gdImagePtr) job->surface;
pointf spf, epf;
double parawidth = para->width * job->scale.x;
- gdFTStringExtra strex;
-#ifdef HAVE_GD_FREETYPE
- char *err;
- int brect[8];
-#endif
if (!im)
return;