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

static FT_Error FT_New_Face_From_Resource ( FT_Library  library,
const UInt8 *  pathname,
FT_Long  face_index,
FT_Face aface 
) [static]

Definition at line 910 of file ftmac.c.

Referenced by FT_New_Face(), and FT_New_Face_From_FSRef().

00914   {
00915     OSType    file_type;
00916     FT_Error  error;
00917 
00918 
00919     /* LWFN is a (very) specific file format, check for it explicitly */
00920     file_type = get_file_type_from_path( pathname );
00921     if ( file_type == TTAG_LWFN )
00922       return FT_New_Face_From_LWFN( library, pathname, face_index, aface );
00923 
00924     /* Otherwise the file type doesn't matter (there are more than  */
00925     /* `FFIL' and `tfil').  Just try opening it as a font suitcase; */
00926     /* if it works, fine.                                           */
00927 
00928     error = FT_New_Face_From_Suitcase( library, pathname, face_index, aface );
00929     if ( error == 0 )
00930       return error;
00931 
00932     /* let it fall through to normal loader (.ttf, .otf, etc.); */
00933     /* we signal this by returning no error and no FT_Face      */
00934     *aface = NULL;
00935     return 0;
00936   }


Generated on Fri Feb 10 06:08:22 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.