diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2012-02-06 16:10:07 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2012-02-06 16:10:07 +0100 |
commit | 5cd45b68ad936006f3783abbcc064658d5e3508a (patch) | |
tree | 8abc09eada6f28b68194b13c269707d8ed6b4161 /pdf/pdf_type3.c | |
parent | 499c0e9b6d7a7ea537b90b33af2b3d655102a597 (diff) | |
download | mupdf-5cd45b68ad936006f3783abbcc064658d5e3508a.tar.xz |
Pass context to cmap and font descriptor functions.
Diffstat (limited to 'pdf/pdf_type3.c')
-rw-r--r-- | pdf/pdf_type3.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pdf/pdf_type3.c b/pdf/pdf_type3.c index 3b596cdd..777ff756 100644 --- a/pdf/pdf_type3.c +++ b/pdf/pdf_type3.c @@ -88,13 +88,13 @@ pdf_load_type3_font(pdf_document *xref, fz_obj *rdb, fz_obj *dict) } fontdesc->encoding = pdf_new_identity_cmap(ctx, 0, 1); - fontdesc->size += pdf_cmap_size(fontdesc->encoding); + fontdesc->size += pdf_cmap_size(ctx, fontdesc->encoding); - pdf_load_to_unicode(fontdesc, xref, estrings, NULL, fz_dict_gets(dict, "ToUnicode")); + pdf_load_to_unicode(xref, fontdesc, estrings, NULL, fz_dict_gets(dict, "ToUnicode")); /* Widths */ - pdf_set_default_hmtx(fontdesc, 0); + pdf_set_default_hmtx(ctx, fontdesc, 0); first = fz_to_int(fz_dict_gets(dict, "FirstChar")); last = fz_to_int(fz_dict_gets(dict, "LastChar")); @@ -113,7 +113,7 @@ pdf_load_type3_font(pdf_document *xref, fz_obj *rdb, fz_obj *dict) pdf_add_hmtx(ctx, fontdesc, i, i, w); } - pdf_end_hmtx(fontdesc); + pdf_end_hmtx(ctx, fontdesc); /* Resources -- inherit page resources if the font doesn't have its own */ |