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 ( FT_Library  library,
const char pathname,
FT_Long  face_index,
FT_Face aface 
)

Definition at line 951 of file ftmac.c.

00955   {
00956     FT_Open_Args  args;
00957     FT_Error      error;
00958 
00959 
00960     /* test for valid `library' and `aface' delayed to FT_Open_Face() */
00961     if ( !pathname )
00962       return FT_Err_Invalid_Argument;
00963 
00964     error  = FT_Err_Ok;
00965     *aface = NULL;
00966 
00967     /* try resourcefork based font: LWFN, FFIL */
00968     error = FT_New_Face_From_Resource( library, (UInt8 *)pathname,
00969                                        face_index, aface );
00970     if ( error != 0 || *aface != NULL )
00971       return error;
00972 
00973     /* let it fall through to normal loader (.ttf, .otf, etc.) */
00974     args.flags    = FT_OPEN_PATHNAME;
00975     args.pathname = (char*)pathname;
00976     return FT_Open_Face( library, &args, face_index, aface );
00977   }


Generated on Thu Feb 9 06:09:57 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.