diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2018-04-03 17:01:21 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2018-04-25 12:26:32 +0200 |
commit | 5f4a7fef375a16f457974794ab5c552105107652 (patch) | |
tree | 49ac6f61f6d515c4ba0c0e9abd1f8016e469cc3c /source/pdf/pdf-font.c | |
parent | a6d083bb776ecd498e57450ef84c20e39ae604cf (diff) | |
download | mupdf-5f4a7fef375a16f457974794ab5c552105107652.tar.xz |
Update CMaps to latest version.
Remove UTF8 and UTF32 CMap resources that are not needed for PDF.
Add Identity-H and Identity-V resources.
Process UCS2/UTF16 and GBK CMaps to usecmap a common subset.
Diffstat (limited to 'source/pdf/pdf-font.c')
-rw-r--r-- | source/pdf/pdf-font.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/source/pdf/pdf-font.c b/source/pdf/pdf-font.c index cf72b5ba..b00fe18f 100644 --- a/source/pdf/pdf-font.c +++ b/source/pdf/pdf-font.c @@ -1058,12 +1058,7 @@ load_cid_font(fz_context *ctx, pdf_document *doc, pdf_obj *dict, pdf_obj *encodi if (pdf_is_name(ctx, encoding)) { - if (pdf_name_eq(ctx, encoding, PDF_NAME(Identity_H))) - cmap = pdf_new_identity_cmap(ctx, 0, 2); - else if (pdf_name_eq(ctx, encoding, PDF_NAME(Identity_V))) - cmap = pdf_new_identity_cmap(ctx, 1, 2); - else - cmap = pdf_load_system_cmap(ctx, pdf_to_name(ctx, encoding)); + cmap = pdf_load_system_cmap(ctx, pdf_to_name(ctx, encoding)); } else if (pdf_is_indirect(ctx, encoding)) { |