From 209f30bee3121bbae32799b0bbb10f5e6db4158c Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Wed, 11 Jan 2012 23:26:49 +0100 Subject: Hide glyph cache in context. --- fitz/res_font.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'fitz/res_font.c') diff --git a/fitz/res_font.c b/fitz/res_font.c index 79faa004..a851e3c7 100644 --- a/fitz/res_font.c +++ b/fitz/res_font.c @@ -623,7 +623,6 @@ fz_render_t3_glyph(fz_context *ctx, fz_font *font, int gid, fz_matrix trm, fz_co fz_buffer *contents; fz_bbox bbox; fz_device *dev; - fz_glyph_cache *cache; fz_pixmap *glyph; fz_pixmap *result; @@ -666,12 +665,10 @@ fz_render_t3_glyph(fz_context *ctx, fz_font *font, int gid, fz_matrix trm, fz_co glyph = fz_new_pixmap_with_rect(ctx, model ? model : fz_device_gray, bbox); fz_clear_pixmap(glyph); - cache = fz_new_glyph_cache(ctx); - dev = fz_new_draw_device_type3(ctx, cache, glyph); + dev = fz_new_draw_device_type3(ctx, glyph); font->t3run(font->t3xref, font->t3resources, contents, dev, ctm); /* RJW: "cannot draw type3 glyph" */ fz_free_device(dev); - fz_free_glyph_cache(ctx, cache); if (!model) { -- cgit v1.2.3