diff options
author | Karl Berry <karl@freefriends.org> | 2021-03-16 21:48:02 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2021-03-16 21:48:02 +0000 |
commit | c8201b3e2e25ed926de8a2f47e5d11fce62dc9b5 (patch) | |
tree | e07d2e49cbb779a0a86f2a8e25603f6368c28669 /Build/source/texk/web2c/pdftexdir/writefont.c | |
parent | bd9f3f5a375d6bf7cdab7ecfdde0e8e2a0ca9e69 (diff) |
error message instead of assertion
git-svn-id: svn://tug.org/texlive/trunk@58431 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/pdftexdir/writefont.c')
-rw-r--r-- | Build/source/texk/web2c/pdftexdir/writefont.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Build/source/texk/web2c/pdftexdir/writefont.c b/Build/source/texk/web2c/pdftexdir/writefont.c index ec073e0edff..5f67a348bae 100644 --- a/Build/source/texk/web2c/pdftexdir/writefont.c +++ b/Build/source/texk/web2c/pdftexdir/writefont.c @@ -1,5 +1,5 @@ /* writefont.c: font descriptors and writing Type 1 fonts. -Copyright 1996-2018 Han The Thanh, <thanh@pdftex.org> +Copyright 1996-2021 Han The Thanh, <thanh@pdftex.org> This file is part of pdfTeX. @@ -552,7 +552,9 @@ static void write_fontdictionary(fo_entry * fo) fo->tounicode_objnum = write_tounicode(fo->fe->glyph_names, fo->fm->tfm_name, fo->fe->name); } else if (is_type1(fo->fm)) { - assert(fo->fd->builtin_glyph_names != NULL); + if (fo->fd->builtin_glyph_names==NULL) { + pdftex_fail("builtin glyph names is empty"); + } fo->tounicode_objnum = write_tounicode(fo->fd->builtin_glyph_names, fo->fm->tfm_name, NULL); } |