rem: if ( face_index < 0 ) return TT_Err_Ok;   error = sfnt->load_face( stream, face, face_index, num_params, params ); if ( error ) goto Exit;  if ( face->root.face_flags & FT_FACE_FLAG_SCALABLE ) {  #ifdef FT_CONFIG_OPTION_INCREMENTAL  if ( !face->root.internal->incremental_interface ) error = tt_face_load_loca( face, stream ); if ( !error ) error = tt_face_load_cvt      ( face, stream ) || tt_face_load_fpgm ( face, stream );
context:   FT_LOCAL_DEF( FT_Error )  tt_face_init( FT_Stream      stream,                TT_Face        face,                FT_Int         face_index,                FT_Int         num_params,                FT_Parameter*  params )  {    FT_Error      error;    FT_Library    library;    SFNT_Service  sfnt;    library = face->root.driver->root.library;    sfnt    = (SFNT_Service)FT_Get_Module_Interface( library, "sfnt" );    if ( !sfnt )      goto Bad_Format;    /* create input stream from resource */    if ( FT_STREAM_SEEK( 0 ) )      goto Exit;    /* check that we have a valid TrueType file */    error = sfnt->init_face( stream, face, face_index, num_params, params );    if ( error )      goto Exit;    /* We must also be able to accept Mac/GX fonts, as well as OT ones */    if ( face->format_tag != 0x00010000L &&    /* MS fonts  */         face->format_tag != TTAG_true   )     /* Mac fonts */    {      FT_TRACE2(( "[not a valid TTF font]\n" ));      goto Bad_Format;    }    /* If we are performing a simple font format check, exit immediately */    if ( face_index < 0 )      return TT_Err_Ok;    /* Load font directory */    error = sfnt->load_face( stream, face, face_index, num_params, params );    if ( error )      goto Exit;    if ( face->root.face_flags & FT_FACE_FLAG_SCALABLE )      {#ifdef FT_CONFIG_OPTION_INCREMENTAL        if ( !face->root.internal->incremental_interface )          error = tt_face_load_loca( face, stream );        if ( !error )          error = tt_face_load_cvt      ( face, stream ) ||                  tt_face_load_fpgm ( face, stream );#else        if ( !error )          error = tt_face_load_loca( face, stream ) ||                  tt_face_load_cvt      ( face, stream ) ||                  tt_face_load_fpgm ( face, stream );#endif      }    /* initialize standard glyph loading routines */    TT_Init_Glyph_Loading( face );  Exit:    return error;  Bad_Format:    error = TT_Err_Unknown_File_Format;    goto Exit;  }