summaryrefslogtreecommitdiff
path: root/source/pdf
diff options
context:
space:
mode:
Diffstat (limited to 'source/pdf')
-rw-r--r--source/pdf/pdf-font.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source/pdf/pdf-font.c b/source/pdf/pdf-font.c
index f600fc1b..b29a1a18 100644
--- a/source/pdf/pdf-font.c
+++ b/source/pdf/pdf-font.c
@@ -1083,7 +1083,7 @@ load_cid_font(fz_context *ctx, pdf_document *doc, pdf_obj *dict, pdf_obj *encodi
/* Apply encoding */
cidtogidmap = pdf_dict_get(ctx, dict, PDF_NAME(CIDToGIDMap));
- if (pdf_is_indirect(ctx, cidtogidmap))
+ if (pdf_is_stream(ctx, cidtogidmap))
{
fz_buffer *buf;
size_t z, len;
@@ -1100,6 +1100,10 @@ load_cid_font(fz_context *ctx, pdf_document *doc, pdf_obj *dict, pdf_obj *encodi
fz_drop_buffer(ctx, buf);
}
+ else if (!pdf_name_eq(ctx, PDF_NAME(Identity), cidtogidmap))
+ {
+ fz_warn(ctx, "ignoring unknown CIDToGIDMap entry");
+ }
/* if font is external, cidtogidmap should not be identity */
/* so we map from cid to unicode and then map that through the (3 1) */