diff options
author | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2016-04-16 13:04:48 +0000 |
---|---|---|
committer | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2016-04-16 13:04:48 +0000 |
commit | 91290007bf40ec0653a4fa19c6f6fb336623b103 (patch) | |
tree | 55da5e771c4c662d1cdbdc3fc89e3aafe19a4e43 | |
parent | 62c801aaf16979605f84b4fc816eca8d3a43724a (diff) |
web2c/luatexdir: sync with the upstream
git-svn-id: svn://tug.org/texlive/trunk@40554 c570f23f-e606-0410-a88d-b1316a301751
-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) { |