Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

FT_New_Face_From_FSRef ( FT_Library  library,
const FSRef *  ref,
FT_Long  face_index,
FT_Face aface 
)

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   }


Generated on Thu Feb 9 06:09:58 2012 for ReactOS by doxygen 1.6.3

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.