summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/luatexdir/font
diff options
context:
space:
mode:
authorLuigi Scarso <luigi.scarso@gmail.com>2021-03-16 21:21:41 +0000
committerLuigi Scarso <luigi.scarso@gmail.com>2021-03-16 21:21:41 +0000
commitbd9f3f5a375d6bf7cdab7ecfdde0e8e2a0ca9e69 (patch)
tree91ea7f7cc713db1765aca2b41902ff9188c0ccd6 /Build/source/texk/web2c/luatexdir/font
parent3256351fa7d547a6394acc36a610572f137a8362 (diff)
quick fix when fo->fd->builtin_glyph_names == NULL
git-svn-id: svn://tug.org/texlive/trunk@58430 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/luatexdir/font')
-rw-r--r--Build/source/texk/web2c/luatexdir/font/writefont.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Build/source/texk/web2c/luatexdir/font/writefont.c b/Build/source/texk/web2c/luatexdir/font/writefont.c
index 13fa8b7543d..d858086b285 100644
--- a/Build/source/texk/web2c/luatexdir/font/writefont.c
+++ b/Build/source/texk/web2c/luatexdir/font/writefont.c
@@ -634,6 +634,9 @@ static void write_fontdictionary(PDF pdf, fo_entry * fo)
if (fo->fe != NULL) {
fo->tounicode_objnum = write_tounicode(pdf, fo->fe->glyph_names, fo->fe->name);
} else if (is_type1(fo->fm)) {
+ if (fo->fd->builtin_glyph_names==NULL) {
+ normal_error("font", "builtin glyph names is empty");
+ }
fo->tounicode_objnum = write_tounicode(pdf, fo->fd->builtin_glyph_names, fo->fm->tfm_name);
}
}