]> git.donarmstrong.com Git - lilypond.git/commitdiff
(readNamingTable): verbosity for "bad TTF
authorhanwen <hanwen>
Wed, 8 Jun 2005 11:26:12 +0000 (11:26 +0000)
committerhanwen <hanwen>
Wed, 8 Jun 2005 11:26:12 +0000 (11:26 +0000)
file" massage.

ChangeLog
ttftool/parse.c
ttftool/util.c

index 2c2566206ac9b9b199027ee5a770a516097ad786..d0d27b06bc7bacff1c0092f1070b1447dbeea1bf 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2005-06-08  Han-Wen Nienhuys  <hanwen@xs4all.nl>
 
+       * ttftool/parse.c (readNamingTable): verbosity for "bad TTF
+       file" massage.
+
        * Documentation/user/GNUmakefile (TEXINPUTS): set TEXINPUTS so our
        texinfo.tex is always used.
        
index b233910b58918237db2c98df4778e42fd8feab05..8d7f0f8bc42eae87cb55651d36b2c33cc4a131ad 100644 (file)
@@ -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));
index cb396dbb9c9661491002e197ea958af2269a3c7b..6c5fe9e88a359d86388449ac7b4e0a42da40c6d9 100644 (file)
@@ -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;
 }