/***************************************************************************/ /* */ /* ftmac.h */ /* */ /* Additional Mac-specific API. */ /* */ /* Copyright 1996-2000 by */ /* Just van Rossum, David Turner, Robert Wilhelm, and Werner Lemberg. */ /* */ /* This file is part of the FreeType project, and may only be used, */ /* modified, and distributed under the terms of the FreeType project */ /* license, LICENSE.TXT. By continuing to use, modify, or distribute */ /* this file you indicate that you have read the license and */ /* understand and accept it fully. */ /* */ /***************************************************************************/ /***************************************************************************/ /* */ /* NOTE: Include this file after and after the */ /* Mac-specific header (or any other Mac header that */ /* includes ); we use Handle type. */ /* */ /***************************************************************************/ #ifndef FT_MAC_H #define FT_MAC_H #ifdef __cplusplus extern "C" { #endif /*************************************************************************/ /* */ /* */ /* FT_New_Face_From_FOND */ /* */ /* */ /* Creates a new face object from an FOND resource. */ /* */ /* */ /* library :: A handle to the library resource. */ /* */ /* */ /* fond :: An FOND resource. */ /* */ /* face_index :: Only supported for the -1 `sanity check' special */ /* case. */ /* */ /* */ /* aface :: A handle to a new face object. */ /* */ /* */ /* FreeType error code. 0 means success. */ /* */ /* */ /* This function can be used to create FT_Face abjects from fonts */ /* that are installed in the system like so: */ /* */ /* fond = GetResource( 'FOND', fontName ); */ /* error = FT_New_Face_From_FOND( library, fond, 0, &face ); */ /* */ FT_EXPORT( FT_Error ) FT_New_Face_From_FOND( FT_Library library, Handle fond, FT_Long face_index, FT_Face *aface ); #ifdef __cplusplus } #endif #endif /* FT_MAC_H */ /* END */