This commit is contained in:
Behdad Esfahbod 2007-11-18 22:34:08 +00:00
parent 10d6a25a26
commit 3b047380ae
2 changed files with 52 additions and 53 deletions

View File

@ -200,7 +200,7 @@ main (int argc, char **argv)
croak ("HB_Done_GSUB_Table", error); croak ("HB_Done_GSUB_Table", error);
} }
else if (error != HB_Err_Not_Covered) else if (error != HB_Err_Not_Covered)
fprintf (stderr, "HB_Load_GSUB_Table %x\n", error); fprintf (stderr, "HB_Load_GSUB_Table: error 0x%x\n", error);
if (!(error = HB_Load_GPOS_Table (font, &gpos, NULL))) if (!(error = HB_Load_GPOS_Table (font, &gpos, NULL)))
{ {
@ -210,7 +210,7 @@ main (int argc, char **argv)
croak ("HB_Done_GPOS_Table", error); croak ("HB_Done_GPOS_Table", error);
} }
else if (error != HB_Err_Not_Covered) else if (error != HB_Err_Not_Covered)
fprintf (stderr, "HB_Load_GPOS_Table %x\n", error); fprintf (stderr, "HB_Load_GPOS_Table: error 0x%x\n", error);
printf ("</OpenType>\n"); printf ("</OpenType>\n");

View File

@ -164,9 +164,9 @@ _hb_font_goto_table( HB_Font font,
{ {
LOG(( "not a SFNT font !!\n" )); LOG(( "not a SFNT font !!\n" ));
error = ERR(HB_Err_Invalid_Argument); error = ERR(HB_Err_Invalid_Argument);
goto Exit;
} }
else
{
/* parse the directory table directly, without using /* parse the directory table directly, without using
* FreeType's built-in data structures * FreeType's built-in data structures
*/ */
@ -222,7 +222,6 @@ _hb_font_goto_table( HB_Font font,
FoundIt: FoundIt:
FORGET_Frame(); FORGET_Frame();
}
Exit: Exit:
LOG(( "TrueType error=%d\n", error )); LOG(( "TrueType error=%d\n", error ));