summaryrefslogtreecommitdiff
path: root/fitz/res_font.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2012-01-11 23:26:49 +0100
committerTor Andersson <tor.andersson@artifex.com>2012-01-11 23:26:49 +0100
commit209f30bee3121bbae32799b0bbb10f5e6db4158c (patch)
treeba20a47f0bfb0370525a4ee84e98fa136202fc82 /fitz/res_font.c
parentbe1ed0692b49bc86ce512edc837fefc601d42443 (diff)
downloadmupdf-209f30bee3121bbae32799b0bbb10f5e6db4158c.tar.xz
Hide glyph cache in context.
Diffstat (limited to 'fitz/res_font.c')
-rw-r--r--fitz/res_font.c5
1 files changed, 1 insertions, 4 deletions
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)
{