2000-07-28 03:08:32 +02:00
|
|
|
/***************************************************************************/
|
|
|
|
/* */
|
|
|
|
/* 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. */
|
|
|
|
/* */
|
|
|
|
/***************************************************************************/
|
|
|
|
|
|
|
|
|
2000-11-04 09:33:38 +01:00
|
|
|
/***************************************************************************/
|
|
|
|
/* */
|
|
|
|
/* NOTE: Include this file after <freetype/freetype.h> and after the */
|
|
|
|
/* Mac-specific <Types.h> header (or any other Mac header that */
|
|
|
|
/* includes <Types.h>); we use Handle type. */
|
|
|
|
/* */
|
|
|
|
/***************************************************************************/
|
2000-07-28 03:08:32 +02:00
|
|
|
|
|
|
|
|
|
|
|
#ifndef FT_MAC_H
|
|
|
|
#define FT_MAC_H
|
|
|
|
|
|
|
|
|
2000-08-01 15:17:04 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
2000-07-28 03:08:32 +02:00
|
|
|
/*************************************************************************/
|
|
|
|
/* */
|
|
|
|
/* <Function> */
|
|
|
|
/* FT_New_Face_From_FOND */
|
|
|
|
/* */
|
|
|
|
/* <Description> */
|
|
|
|
/* Creates a new face object from an FOND resource. */
|
|
|
|
/* */
|
|
|
|
/* <InOut> */
|
|
|
|
/* library :: A handle to the library resource. */
|
|
|
|
/* */
|
|
|
|
/* <Input> */
|
|
|
|
/* fond :: An FOND resource. */
|
|
|
|
/* */
|
|
|
|
/* face_index :: only supported for the -1 `sanity check' */
|
|
|
|
/* special case. */
|
|
|
|
/* */
|
|
|
|
/* <Output> */
|
|
|
|
/* aface :: A handle to a new face object. */
|
|
|
|
/* */
|
|
|
|
/* <Return> */
|
|
|
|
/* FreeType error code. 0 means success. */
|
|
|
|
/* */
|
|
|
|
/* <Notes> */
|
|
|
|
/* 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 ); */
|
|
|
|
/* */
|
2000-11-04 02:55:49 +01:00
|
|
|
FT_EXPORT_DEF( FT_Error ) FT_New_Face_From_FOND(
|
2000-11-04 09:33:38 +01:00
|
|
|
FT_Library library,
|
|
|
|
Handle fond,
|
|
|
|
FT_Long face_index,
|
|
|
|
FT_Face* aface );
|
2000-07-28 03:08:32 +02:00
|
|
|
|
|
|
|
|
2000-08-01 15:17:04 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
2000-07-28 03:08:32 +02:00
|
|
|
#endif /* FT_MAC_H */
|