file" massage.
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.
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));
{
off_t result;
if ((result = lseek (fildes, offset, whence)) < 0)
- error ("Bad TTF file");
+ error ("Bad TTF file. Cannot seek");
return result;
}
{
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;
}