From: Han-Wen Nienhuys Date: Wed, 8 Jun 2005 11:26:12 +0000 (+0000) Subject: (readNamingTable): verbosity for "bad TTF X-Git-Tag: release/2.5.30~29 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=870c02803ce8510e69ed2e2f4f9141e58c8fd922;p=lilypond.git (readNamingTable): verbosity for "bad TTF file" massage. --- diff --git a/ChangeLog b/ChangeLog index 2c2566206a..d0d27b06bc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2005-06-08 Han-Wen Nienhuys + * ttftool/parse.c (readNamingTable): verbosity for "bad TTF + file" massage. + * Documentation/user/GNUmakefile (TEXINPUTS): set TEXINPUTS so our texinfo.tex is always used. diff --git a/ttftool/parse.c b/ttftool/parse.c index b233910b58..8d7f0f8bc4 100644 --- a/ttftool/parse.c +++ b/ttftool/parse.c @@ -43,7 +43,7 @@ readNamingTable (int fd) surely_read (fd, &format, sizeof (USHORT)); FIX_UH (format); if (format != 0) - error ("Bad TTF file\n"); + error ("Bad TTF file. Format should be 0\n"); surely_read (fd, &nrecords, sizeof (USHORT)); FIX_UH (nrecords); surely_read (fd, &offset, sizeof (USHORT)); diff --git a/ttftool/util.c b/ttftool/util.c index cb396dbb9c..6c5fe9e88a 100644 --- a/ttftool/util.c +++ b/ttftool/util.c @@ -44,7 +44,7 @@ surely_lseek (int fildes, off_t offset, int whence) { off_t result; if ((result = lseek (fildes, offset, whence)) < 0) - error ("Bad TTF file"); + error ("Bad TTF file. Cannot seek"); return result; } @@ -67,7 +67,7 @@ surely_read (int fildes, void *buf, size_t nbyte) { ssize_t n; if ((n = read (fildes, buf, nbyte)) < nbyte) - error ("Bad TTF file"); + error ("Bad TTF file. Read too little bytes in surely_read()"); return n; }