summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'devices/vector/gdevpdtf.h')
-rw-r--r--devices/vector/gdevpdtf.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/devices/vector/gdevpdtf.h b/devices/vector/gdevpdtf.h
index 4a9e8961..f0006641 100644
--- a/devices/vector/gdevpdtf.h
+++ b/devices/vector/gdevpdtf.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2019 Artifex Software, Inc.
+/* Copyright (C) 2001-2020 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -203,6 +203,15 @@ struct pdf_font_resource_s {
gs_cmap_t *cmap_ToUnicode; /* CMap (not used for CIDFonts) */
gs_glyph_mark_proc_t mark_glyph;
void *mark_glyph_data; /* closure data */
+
+ /* We use this when determining whether we should use an existing ToUnicode
+ * CMap or just use the Encoding, for s aimple font. Even if the Encoding
+ * only uses named glyphs, with names we can understand, the original
+ * ToUnicode may have mapped these in a non-standard way.
+ * See Bug #702201 where the ffi ligature is mapped to 3 code points
+ */
+ int TwoByteToUnicode;
+
union {
struct /*type0*/ {
@@ -253,7 +262,6 @@ struct pdf_font_resource_s {
gs_point *v; /* [256], glyph origin for WMode 1 */
int last_reserved_char; /* Except for synthesised Type 3,
which stores such data in LastChar */
-
gs_glyph standard_glyph_code_for_notdef;
union {