diff options
Diffstat (limited to 'Build/source/texk/web2c/luatexdir/font/tounicode.w')
-rw-r--r-- | Build/source/texk/web2c/luatexdir/font/tounicode.w | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/Build/source/texk/web2c/luatexdir/font/tounicode.w b/Build/source/texk/web2c/luatexdir/font/tounicode.w index c213eee72c5..441a10dd5cf 100644 --- a/Build/source/texk/web2c/luatexdir/font/tounicode.w +++ b/Build/source/texk/web2c/luatexdir/font/tounicode.w @@ -285,16 +285,19 @@ static void set_cid_glyph_unicode(long index, glyph_unicode_entry * gp, internal_font_number f) { char *s; - if (font_tounicode(f) && - (s = get_charinfo_tounicode(char_info(f, (int) index))) != NULL) { - gp->code = UNI_EXTRA_STRING; - gp->unicode_seq = xstrdup(s); + if (font_tounicode(f)) { + if ((s = get_charinfo_tounicode(char_info(f, (int) index))) != NULL) { + gp->code = UNI_EXTRA_STRING; + gp->unicode_seq = xstrdup(s); + } else { + /* no fallback as we're providing them ourselves */ + } } else { - gp->code = index; /* fallback */ + /* fallback */ + gp->code = index; } } - @ @c int write_tounicode(PDF pdf, char **glyph_names, char *name) { |