metrics->origin.y=(double) origin.y;
if (metrics->origin.x > metrics->width)
metrics->width=metrics->origin.x;
- if (last_glyph.image != 0)
+ if (last_glyph.image != (FT_Glyph) NULL)
{
FT_Done_Glyph(last_glyph.image);
- last_glyph.image=0;
+ last_glyph.image=(FT_Glyph) NULL;
}
last_glyph=glyph;
code=GetUTFCode(p+grapheme[i].cluster);
grapheme=(GraphemeInfo *) RelinquishMagickMemory(grapheme);
if (utf8 != (unsigned char *) NULL)
utf8=(unsigned char *) RelinquishMagickMemory(utf8);
- if (glyph.image != 0)
+ if (last_glyph.image != (FT_Glyph) NULL)
{
- FT_Done_Glyph(glyph.image);
- glyph.image=0;
+ FT_Done_Glyph(last_glyph.image);
+ last_glyph.image=(FT_Glyph) NULL;
}
/*
Determine font metrics.