Commit 8d8595ff authored by suzuki toshiya's avatar suzuki toshiya

[ftvalid] Prints the filename to be validated.

For easy testing with `find' to scan a font directory,
ftvalid prints each filename to be validated.
parent 3ec5f4ba
2011-06-19 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
[ftvalid] Prints the filename to be validated.
For easy testing with `find' to scan a font directory,
ftvalid prints each filename to be validated.
2011-06-15 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
[ftbench] Add option `-l' to specify last used glyph index.
......
......@@ -910,11 +910,19 @@
/* TODO: Multiple faces in a font file? */
error = FT_New_Face( library, fontfile, font_index, &face );
if ( error )
panic( error, "Could not open face." );
{
fprintf( stderr, "Could not open a face from"
" %s, error=%d\n", fontfile, error );
exit( 1 );
}
if ( !FT_IS_SFNT( face ) )
panic( FT_Err_Table_Missing, "This is not sfnt-housed font." );
{
fprintf( stderr, "%s is not sfnt-housed font.\n", fontfile );
exit( 1 );
}
fprintf( stderr, "%s validates a font file %s\n", execname, fontfile );
if ( dump_table_list )
validators[validator].list_tables( face );
else
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment