Exemple #1
0
void
gslt_free_font(gs_memory_t *mem, gslt_font_t *xf)
{
    gs_font_finalize(xf->font);
    gs_free_object(mem, xf->font, "font object");
    gs_free_object(mem, xf, "gslt_font struct");
}
Exemple #2
0
void
xps_free_font(xps_context_t *ctx, xps_font_t *font)
{
    if (font->font)
    {
        gs_font_finalize(ctx->memory, font->font);
        gs_free_object(ctx->memory, font->font, "font object");
    }
    xps_free(ctx, font);
}