diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2016-05-31 16:14:11 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2016-06-06 14:51:54 +0200 |
commit | ae64e55878766478f536a0b2158e0a29f5cf00ed (patch) | |
tree | 462718d0d959294e161e4f18fb9920a7017368b9 /include | |
parent | 238ade12c1c7689d65ee9899eb00f895fcbd9a6f (diff) | |
download | mupdf-ae64e55878766478f536a0b2158e0a29f5cf00ed.tar.xz |
Minimize the number of CMaps built in to the ones listed in the spec.
Omitting the unlisted UTF-8 and UTF-32 CMaps saves ~1M.
Omitting the unlisted other CMaps saves ~200k.
Define CJK_CMAPS=0 to skip all CMaps.
Define EXTRA_CMAPS=1 to include the various other CMaps.
Define UTF8_CMAPS=1 and UTF32_CMAPS to include the UTF-8 and UTF-32 CMaps.
Diffstat (limited to 'include')
-rw-r--r-- | include/mupdf/pdf/cmap.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/mupdf/pdf/cmap.h b/include/mupdf/pdf/cmap.h index 7b437b1d..d0e6aade 100644 --- a/include/mupdf/pdf/cmap.h +++ b/include/mupdf/pdf/cmap.h @@ -77,8 +77,8 @@ int pdf_decode_cmap(pdf_cmap *cmap, unsigned char *s, unsigned char *e, unsigned pdf_cmap *pdf_new_identity_cmap(fz_context *ctx, int wmode, int bytes); pdf_cmap *pdf_load_cmap(fz_context *ctx, fz_stream *file); -pdf_cmap *pdf_load_system_cmap(fz_context *ctx, char *name); -pdf_cmap *pdf_load_builtin_cmap(fz_context *ctx, char *name); +pdf_cmap *pdf_load_system_cmap(fz_context *ctx, const char *name); +pdf_cmap *pdf_load_builtin_cmap(fz_context *ctx, const char *name); pdf_cmap *pdf_load_embedded_cmap(fz_context *ctx, pdf_document *doc, pdf_obj *ref); void pdf_print_cmap(fz_context *ctx, fz_output *out, pdf_cmap *cmap); |