diff options
author | Jeffrey H. Kingston <jeff@it.usyd.edu.au> | 2010-09-14 20:37:27 +0000 |
---|---|---|
committer | Jeffrey H. Kingston <jeff@it.usyd.edu.au> | 2010-09-14 20:37:27 +0000 |
commit | 7db8921aac3a0e1223af269ec7092bdd91a7c7a2 (patch) | |
tree | 4336d04fbb26c26d23f6d5a3d572b474dd1f70af /z48.c | |
parent | a9f9ae0efa326dc2edc7f2d92ce270f5fdc15b60 (diff) | |
download | lout-7db8921aac3a0e1223af269ec7092bdd91a7c7a2.tar.gz |
Lout 3.24.
git-svn-id: http://svn.savannah.nongnu.org/svn/lout/trunk@17 9365b830-b601-4143-9ba8-b4a8e2c3339c
Diffstat (limited to 'z48.c')
-rw-r--r-- | z48.c | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -1,6 +1,6 @@ /*@z48.c:PDF back end@********************************************************/ /* */ -/* THE LOUT DOCUMENT FORMATTING SYSTEM (VERSION 3.23) */ +/* THE LOUT DOCUMENT FORMATTING SYSTEM (VERSION 3.24) */ /* COPYRIGHT (C) 1991, 2000 Jeffrey H. Kingston */ /* */ /* Jeffrey H. Kingston (jeff@cs.usyd.edu.au) */ @@ -1013,6 +1013,10 @@ static PDF_OBJECT_NUM PDFFont_FindFontEncoding( { t_font_encoding_entry_ptr entry = g_font_encoding_list; + /* these two lines are Uwe patch Jul 18, 2000 */ + if (in_font_encoding_name == NULL) + return 0; + while (entry != NULL) { if (strcmp((char*)in_font_encoding_name, (char*)entry->m_font_encoding)==0) @@ -1039,7 +1043,8 @@ void PDFFont_AddFont(FILE* in_fp, const FULL_CHAR* in_short_font_name, { t_font_list_entry_ptr entry = PDFFont_FindListEntry(in_real_font_name); debug4(DPD, D, "PDFFont_AddFont(-, %s, %s, %s) [new = %s]", - in_short_font_name, in_real_font_name, in_font_encoding_name, + in_short_font_name, in_real_font_name, + (in_font_encoding_name ? in_font_encoding_name : ""), bool(entry == NULL)); /* *** this attempted bug fix by Jeff K. problem may be multiple font entries for the same font |