From 91290007bf40ec0653a4fa19c6f6fb336623b103 Mon Sep 17 00:00:00 2001 From: Akira Kakuto Date: Sat, 16 Apr 2016 13:04:48 +0000 Subject: web2c/luatexdir: sync with the upstream git-svn-id: svn://tug.org/texlive/trunk@40554 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/web2c/luatexdir/font/tounicode.w | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'Build') 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) { -- cgit v1.2.3