1
/***************************************************************************/
5
/* Additional Mac-specific API. */
7
/* Copyright 1996-2001, 2004 by */
8
/* Just van Rossum, David Turner, Robert Wilhelm, and Werner Lemberg. */
10
/* This file is part of the FreeType project, and may only be used, */
11
/* modified, and distributed under the terms of the FreeType project */
12
/* license, LICENSE.TXT. By continuing to use, modify, or distribute */
13
/* this file you indicate that you have read the license and */
14
/* understand and accept it fully. */
16
/***************************************************************************/
19
/***************************************************************************/
21
/* NOTE: Include this file after <freetype/freetype.h> and after the */
22
/* Mac-specific <Types.h> header (or any other Mac header that */
23
/* includes <Types.h>); we use Handle type. */
25
/***************************************************************************/
38
/*************************************************************************/
44
/* Mac-Specific Interface */
47
/* Only available on the Macintosh. */
50
/* The following definitions are only available if FreeType is */
51
/* compiled on a Macintosh. */
53
/*************************************************************************/
56
/*************************************************************************/
59
/* FT_New_Face_From_FOND */
62
/* Creates a new face object from an FOND resource. */
65
/* library :: A handle to the library resource. */
68
/* fond :: An FOND resource. */
70
/* face_index :: Only supported for the -1 `sanity check' special */
74
/* aface :: A handle to a new face object. */
77
/* FreeType error code. 0 means success. */
80
/* This function can be used to create FT_Face abjects from fonts */
81
/* that are installed in the system like so: */
84
/* fond = GetResource( 'FOND', fontName ); */
85
/* error = FT_New_Face_From_FOND( library, fond, 0, &face ); */
89
FT_New_Face_From_FOND( FT_Library library,
95
/*************************************************************************/
98
/* FT_GetFile_From_Mac_Name */
101
/* Returns an FSSpec for the disk file containing the named font. */
104
/* fontName :: Mac OS name of the font (eg. Times New Roman Bold). */
107
/* pathSpec :: FSSpec to the file. For passing to @FT_New_Face. */
109
/* face_index :: Index of the face. For passing to @FT_New_Face. */
112
/* FreeType error code. 0 means success. */
114
FT_EXPORT( FT_Error )
115
FT_GetFile_From_Mac_Name( const char* fontName,
117
FT_Long* face_index );
120
/*************************************************************************/
123
/* FT_New_Face_From_FSSpec */
126
/* Creates a new face object from a given resource and typeface index */
127
/* using an FSSpec to the font file. */
130
/* library :: A handle to the library resource. */
133
/* spec :: FSSpec to the font file. */
135
/* face_index :: The index of the face within the resource. The */
136
/* first face has index 0. */
138
/* aface :: A handle to a new face object. */
141
/* FreeType error code. 0 means success. */
144
/* @FT_New_Face_From_FSSpec is identical to @FT_New_Face except */
145
/* it accepts an FSSpec instead of a path. */
147
FT_EXPORT( FT_Error )
148
FT_New_Face_From_FSSpec( FT_Library library,
159
#endif /* __FTMAC_H__ */