diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2012-01-11 23:26:49 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2012-01-11 23:26:49 +0100 |
commit | 209f30bee3121bbae32799b0bbb10f5e6db4158c (patch) | |
tree | ba20a47f0bfb0370525a4ee84e98fa136202fc82 /fitz/res_font.c | |
parent | be1ed0692b49bc86ce512edc837fefc601d42443 (diff) | |
download | mupdf-209f30bee3121bbae32799b0bbb10f5e6db4158c.tar.xz |
Hide glyph cache in context.
Diffstat (limited to 'fitz/res_font.c')
-rw-r--r-- | fitz/res_font.c | 5 |
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) { |