Home | Info | Community | Development | myReactOS | Contact Us
Definition at line 992 of file ftmac.c.
Referenced by FT_New_Face_From_FSSpec().
00996 { 00997 FT_Error error; 00998 FT_Open_Args args; 00999 OSErr err; 01000 UInt8 pathname[PATH_MAX]; 01001 01002 01003 if ( !ref ) 01004 return FT_Err_Invalid_Argument; 01005 01006 err = FSRefMakePath( ref, pathname, sizeof ( pathname ) ); 01007 if ( err ) 01008 error = FT_Err_Cannot_Open_Resource; 01009 01010 error = FT_New_Face_From_Resource( library, pathname, face_index, aface ); 01011 if ( error != 0 || *aface != NULL ) 01012 return error; 01013 01014 /* fallback to datafork font */ 01015 args.flags = FT_OPEN_PATHNAME; 01016 args.pathname = (char*)pathname; 01017 return FT_Open_Face( library, &args, face_index, aface ); 01018 }