diff options
Diffstat (limited to 'Build/source/texk/web2c/luatexdir/font/writet3.w')
-rw-r--r-- | Build/source/texk/web2c/luatexdir/font/writet3.w | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/Build/source/texk/web2c/luatexdir/font/writet3.w b/Build/source/texk/web2c/luatexdir/font/writet3.w index 3dda1770409..1d33330716c 100644 --- a/Build/source/texk/web2c/luatexdir/font/writet3.w +++ b/Build/source/texk/web2c/luatexdir/font/writet3.w @@ -48,7 +48,7 @@ int t3_curbyte = 0; #define t3_check_eof() \ if (t3_eof()) \ - luatex_fail("unexpected end of file"); + normal_error("type 3","unexpected end of file"); @ @c @@ -139,16 +139,13 @@ static boolean writepk(PDF pdf, internal_font_number f) if (name == NULL || !FILESTRCASEEQ(cur_file_name, font_ret.name) || !kpse_bitmap_tolerance((float) font_ret.dpi, (float) dpi)) { - luatex_fail("Font %s at %i not found", cur_file_name, (int) dpi); + formatted_error("type 3","font %s at %i not found", cur_file_name, (int) dpi); } } callback_id = callback_defined(read_pk_file_callback); if (callback_id > 0) { - if (! - (run_callback - (callback_id, "S->bSd", name, &file_opened, &t3_buffer, &t3_size) - && file_opened && t3_size > 0)) { - luatex_warn("Font %s at %i not found", cur_file_name, (int) dpi); + if (!(run_callback(callback_id, "S->bSd", name, &file_opened, &t3_buffer, &t3_size) && file_opened && t3_size > 0)) { + formatted_warning("font %s at %i not found", cur_file_name, (int) dpi); cur_file_name = NULL; return false; } |