diff options
author | Chris Liddell <chris.liddell@artifex.com> | 2022-08-23 17:33:44 +0100 |
---|---|---|
committer | Chris Liddell <chris.liddell@artifex.com> | 2022-08-23 17:33:44 +0100 |
commit | be80c8fe3c6abe1cee8cba530fea796282278e36 (patch) | |
tree | 1b9a3ddd4252b68a684a05df51733066e4ee67f1 | |
parent | af4e75b1c127b7f0fe8fd7e925b5cd1ade58f2c6 (diff) | |
download | ghostpdl-be80c8fe3c6abe1cee8cba530fea796282278e36.tar.gz |
pdfi: Remove the CIDSystemInfo Supplement check in the cidfmap code
The pdfi code for reading and using mappings for CIDFonts in cidfmap validated
all the CIDSystemInfo (registry, ordering and supplement) and if any didn't
match, it would reject the mapping.
It turns out that the old code ignored the Supplement value, so the pdfi code
will now, too.
-rw-r--r-- | pdf/pdf_fmap.c | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/pdf/pdf_fmap.c b/pdf/pdf_fmap.c index 904701eed..000345942 100644 --- a/pdf/pdf_fmap.c +++ b/pdf/pdf_fmap.c @@ -925,7 +925,7 @@ pdf_fontmap_lookup_cidfont(pdf_context *ctx, pdf_dict *font_dict, pdf_name *name pdf_array *mcsi = NULL; pdf_dict *ocsi = NULL; pdf_string *ord1 = NULL, *ord2 = NULL; - int64_t sup1, sup2, i64; + int64_t i64; code = pdfi_dict_get(ctx, rec, "FileType", (pdf_obj **)&filetype); /* We only handle TTF files, just now */ @@ -977,21 +977,6 @@ pdf_fontmap_lookup_cidfont(pdf_context *ctx, pdf_dict *font_dict, pdf_name *name } pdfi_countdown(ord1); pdfi_countdown(ord2); - code = pdfi_dict_get_int(ctx, ocsi, "Supplement", ¹); - if (code < 0) { - pdfi_countdown(ord1); - pdfi_countdown(ocsi); - pdfi_countdown(mcsi); - pdfi_countdown(rec); - return_error(gs_error_undefined); - } - code = pdfi_array_get_int(ctx, mcsi, 1, ²); - pdfi_countdown(ocsi); - pdfi_countdown(mcsi); - if (code < 0 || sup1 != sup2) { - pdfi_countdown(rec); - return_error(gs_error_undefined); - } code = pdfi_dict_get(ctx, rec, "Path", (pdf_obj **)&path); if (code < 0 || pdfi_type_of(path) != PDF_STRING || !pdfi_fmap_file_exists(ctx, (pdf_string *)path)) { |