summaryrefslogtreecommitdiff
path: root/source/pdf/pdf-cmap-load.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2016-05-31 16:14:11 +0200
committerTor Andersson <tor.andersson@artifex.com>2016-06-06 14:51:54 +0200
commitae64e55878766478f536a0b2158e0a29f5cf00ed (patch)
tree462718d0d959294e161e4f18fb9920a7017368b9 /source/pdf/pdf-cmap-load.c
parent238ade12c1c7689d65ee9899eb00f895fcbd9a6f (diff)
downloadmupdf-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 'source/pdf/pdf-cmap-load.c')
-rw-r--r--source/pdf/pdf-cmap-load.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/pdf/pdf-cmap-load.c b/source/pdf/pdf-cmap-load.c
index 525c0dc1..1c72e139 100644
--- a/source/pdf/pdf-cmap-load.c
+++ b/source/pdf/pdf-cmap-load.c
@@ -106,7 +106,7 @@ pdf_new_identity_cmap(fz_context *ctx, int wmode, int bytes)
* Load predefined CMap from system.
*/
pdf_cmap *
-pdf_load_system_cmap(fz_context *ctx, char *cmap_name)
+pdf_load_system_cmap(fz_context *ctx, const char *cmap_name)
{
pdf_cmap *usecmap;
pdf_cmap *cmap;