pointf spf, epf;
double spanwidth = span->size.x * job->zoom * job->dpi.x / POINTS_PER_INCH;
char* fontname;
+#ifdef HAVE_GD_FONTCONFIG
PostscriptAlias *pA;
+#endif
if (!im)
return;
span->str);
}
-static int gdgen_set_penstyle(GVJ_t * job, gdImagePtr im, gdImagePtr brush)
+static int gdgen_set_penstyle(GVJ_t * job, gdImagePtr im, gdImagePtr* brush)
{
obj_state_t *obj = job->obj;
int i, pen, width, dashstyle[40];
/* use brush instead of Thickness to improve end butts */
if (width != PENWIDTH_NORMAL) {
if (im->trueColor) {
- brush = gdImageCreateTrueColor(width,width);
+ *brush = gdImageCreateTrueColor(width,width);
}
else {
- brush = gdImageCreate(width, width);
- gdImagePaletteCopy(brush, im);
+ *brush = gdImageCreate(width, width);
+ gdImagePaletteCopy(*brush, im);
}
- gdImageFilledRectangle(brush, 0, 0, width - 1, width - 1,
+ gdImageFilledRectangle(*brush, 0, 0, width - 1, width - 1,
obj->pencolor.u.index);
- gdImageSetBrush(im, brush);
+ gdImageSetBrush(im, *brush);
if (pen == gdStyled)
pen = gdStyledBrushed;
else
if (!im)
return;
- pen = gdgen_set_penstyle(job, im, brush);
+ pen = gdgen_set_penstyle(job, im, &brush);
pen_ok = (pen != gdImageGetTransparent(im));
fill_ok = (filled && obj->fillcolor.u.index != gdImageGetTransparent(im));
if (!im)
return;
- pen = gdgen_set_penstyle(job, im, brush);
+ pen = gdgen_set_penstyle(job, im, &brush);
pen_ok = (pen != gdImageGetTransparent(im));
fill_ok = (filled && obj->fillcolor.u.index != gdImageGetTransparent(im));
if (!im)
return;
- pen = gdgen_set_penstyle(job, im, brush);
+ pen = gdgen_set_penstyle(job, im, &brush);
pen_ok = (pen != gdImageGetTransparent(im));
fill_ok = (filled && obj->fillcolor.u.index != gdImageGetTransparent(im));
if (!im)
return;
- pen = gdgen_set_penstyle(job, im, brush);
+ pen = gdgen_set_penstyle(job, im, &brush);
pen_ok = (pen != gdImageGetTransparent(im));
if (pen_ok) {