00914 {
00915 OSType file_type;
00916 FT_Errorerror;
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 returnFT_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
1.6.3
ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.