y = l->y;
l = l->next;
}
+ swf_Shape2Free(s);
+ free(s);
}
static ALIGNZONE detect_for_char(SWFFONT * f, int nr, float*row, float*column, SRECT font_bbox, SRECT char_bbox)
// recalculate bounding box
SHAPE2 *shape2 = swf_ShapeToShape2(font->glyph[t].shape);
font->layout->bounds[t] = swf_GetShapeBoundingBox(shape2);
- swf_Shape2Free(shape2);
+ swf_Shape2Free(shape2);free(shape2);
}
}
{
int x = *(const int*)a;
int y = *(const int*)b;
+ return 0;
}
+
void swf_FontSort(SWFFONT * font)
{
int i, j;
return 0;
}
+static void font_freealignzones(SWFFONT * f)
+{
+ if(f->alignzones)
+ free(f->alignzones);
+ f->alignzones = 0;
+}
+
void swf_FontFree(SWFFONT * f)
{
int i;
font_freelayout(f);
font_freeglyphnames(f);
font_freeusage(f);
+ font_freealignzones(f);
rfx_free(f);
}