FT_EXPORT_DEF( FT_Error ) FT_Set_MM_Blend_Coordinates( FT_Face face, FT_UInt num_coords, FT_Fixed* coords ) { FT_Error error; if ( !face ) return FT_Err_Invalid_Face_Handle; error = FT_Err_Invalid_Argument; if ( FT_HAS_MULTIPLE_MASTERS( face ) ) { FT_Driver driver = face->driver; FT_Set_MM_Blend_Func func; func = (FT_Set_MM_Blend_Func)driver->root.clazz->get_interface( FT_MODULE( driver ), "set_mm_blend" ); if ( func ) error = func( face, num_coords, coords ); } return error; }
FT_EXPORT_DEF( FT_Error ) FT_Get_Multi_Master( FT_Face face, FT_Multi_Master *amaster ) { FT_Error error; if ( !face ) return FT_Err_Invalid_Face_Handle; error = FT_Err_Invalid_Argument; if ( FT_HAS_MULTIPLE_MASTERS( face ) ) { FT_Driver driver = face->driver; FT_Get_MM_Func func; func = (FT_Get_MM_Func)driver->root.clazz->get_interface( FT_MODULE( driver ), "get_mm" ); if ( func ) error = func( face, amaster ); } return error; }
T42_Driver_Init( T42_Driver driver ) { FT_Module ttmodule; ttmodule = FT_Get_Module( FT_MODULE(driver)->library, "truetype" ); driver->ttclazz = (FT_Driver_Class)ttmodule->clazz; return T42_Err_Ok; }