Home | Info | Community | Development | myReactOS | Contact Us
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 }