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_LWFN ( FT_Library  library,
const UInt8 *  pathname,
FT_Long  face_index,
FT_Face aface 
) [static]

Definition at line 694 of file ftmac.c.

Referenced by FT_New_Face_From_FOND(), and FT_New_Face_From_Resource().

00698   {
00699     FT_Byte*       pfb_data;
00700     FT_ULong       pfb_size;
00701     FT_Error       error;
00702     ResFileRefNum  res;
00703 
00704 
00705     if ( noErr != FT_FSPathMakeRes( pathname, &res ) )
00706       return FT_Err_Cannot_Open_Resource;
00707 
00708     pfb_data = NULL;
00709     pfb_size = 0;
00710     error = read_lwfn( library->memory, res, &pfb_data, &pfb_size );
00711     CloseResFile( res ); /* PFB is already loaded, useless anymore */
00712     if ( error )
00713       return error;
00714 
00715     return open_face_from_buffer( library,
00716                                   pfb_data,
00717                                   pfb_size,
00718                                   face_index,
00719                                   "type1",
00720                                   aface );
00721   }


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.