@ -69,12 +69,12 @@
TT_Table * limit ;
FT_TRACE3 ( ( " TT_LookUp_Table: %08p, `%c%c%c%c' \n " ,
face ,
( FT_Char ) ( tag > > 24 ) ,
( FT_Char ) ( tag > > 16 ) ,
( FT_Char ) ( tag > > 8 ) ,
( FT_Char ) ( tag ) ) ) ;
FT_TRACE3 ( ( " TT_LookUp_Table: %08p, `%c%c%c%c' -- " ,
face ,
( FT_Char ) ( tag > > 24 ) ,
( FT_Char ) ( tag > > 16 ) ,
( FT_Char ) ( tag > > 8 ) ,
( FT_Char ) ( tag ) ) ) ;
entry = face - > dir_tables ;
limit = entry + face - > num_tables ;
@ -82,10 +82,13 @@
for ( ; entry < limit ; entry + + )
{
if ( entry - > Tag = = tag )
{
FT_TRACE3 ( ( " found table. \n " ) ) ;
return entry ;
}
}
FT_TRACE3 ( ( " C ould not find table!\n " ) ) ;
FT_TRACE3 ( ( " c ould not find table!\n " ) ) ;
return 0 ;
}
@ -446,10 +449,10 @@
/*************************************************************************/
/* */
/* <Function> */
/* TT_Load_Header */
/* TT_Load_Generic_ Header */
/* */
/* <Description> */
/* Loads the TrueType font header. */
/* Loads the TrueType table `head' or `bhed'. */
/* */
/* <Input> */
/* face :: A handle to the target face object. */
@ -495,12 +498,17 @@
} ;
FT_TRACE2 ( ( " Load_TT_Header: %08p \n " , face ) ) ;
FT_TRACE2 ( ( " TT_Load_Generic_Header: %08p, looking up font table `%c%c%c%c'. \n " ,
face ,
( FT_Char ) ( tag > > 24 ) ,
( FT_Char ) ( tag > > 16 ) ,
( FT_Char ) ( tag > > 8 ) ,
( FT_Char ) ( tag ) ) ) ;
error = face - > goto_table ( face , tag , stream , 0 ) ;
if ( error )
{
FT_TRACE0 ( ( " Font Header is missing! \n " ) ) ;
FT_TRACE2 ( ( " TT_Load_Generic_Table: Font table is missing!\n " ) ) ;
goto Exit ;
}
@ -511,7 +519,7 @@
FT_TRACE2 ( ( " Units per EM: %8u \n " , header - > Units_Per_EM ) ) ;
FT_TRACE2 ( ( " IndexToLoc: %8d \n " , header - > Index_To_Loc_Format ) ) ;
FT_TRACE2 ( ( " Font Header L oaded.\n " ) ) ;
FT_TRACE2 ( ( " TT_Load_Generic_Table: Font table l oaded.\n " ) ) ;
Exit :
return error ;