Subversion Repositories Kolibri OS

Rev

Details | Last modification | View Log | RSS feed



















Rev Author Line No. Line
4349 Serge 1
2
"http://www.w3.org/TR/html4/loose.dtd">
3
4
5
6
FreeType-2.5.0 API Reference
7
32
33
34
 
35
[Index]
36
37
[TOC]
38

FreeType-2.5.0 API Reference

39
 
40

41
Mac Specific Interface
42
43

Synopsis

44
45
FT_New_Face_From_FONDFT_GetFilePath_From_Mac_ATS_Name
46
FT_GetFile_From_Mac_NameFT_New_Face_From_FSSpec
47
FT_GetFile_From_Mac_ATS_NameFT_New_Face_From_FSRef
48


49
 
50
51

The following definitions are only available if FreeType is compiled on a Macintosh.

52

53
54

FT_New_Face_From_FOND

55
56
Defined in FT_MAC_H (freetype/ftmac.h).
57

58
59
 
60
  FT_EXPORT( FT_Error )
61
  FT_New_Face_From_FOND( FT_Library  library,
62
                         Handle      fond,
63
                         FT_Long     face_index,
64
                         FT_Face    *aface )
65
                       FT_DEPRECATED_ATTRIBUTE;
66
 
67

68
69

Create a new face object from a FOND resource.

70

71
inout
72

73
74
library
75

A handle to the library resource.

76
77
78
79
input
80

81
82
fond
83

A FOND resource.

84
85
face_index
86

Only supported for the -1 ‘sanity check’ special case.

87
88
89
90
output
91

92
93
aface
94

A handle to a new face object.

95
96
97
98
return
99

FreeType error code. 0 means success.

100
101
notes
102

This function can be used to create FT_Face objects from fonts that are installed in the system as follows.

103
104
  fond = GetResource( 'FOND', fontName );
105
  error = FT_New_Face_From_FOND( library, fond, 0, &face );
106
107
108
109

110
[Index]
111
112
[TOC]
113
 
114
115

FT_GetFile_From_Mac_Name

116
117
Defined in FT_MAC_H (freetype/ftmac.h).
118

119
120
 
121
  FT_EXPORT( FT_Error )
122
  FT_GetFile_From_Mac_Name( const char*  fontName,
123
                            FSSpec*      pathSpec,
124
                            FT_Long*     face_index )
125
                          FT_DEPRECATED_ATTRIBUTE;
126
 
127

128
129

Return an FSSpec for the disk file containing the named font.

130

131
input
132

133
134
fontName
135

Mac OS name of the font (e.g., Times New Roman Bold).

136
137
138
139
output
140

141
142
pathSpec
143

FSSpec to the file. For passing to FT_New_Face_From_FSSpec.

144
145
face_index
146

Index of the face. For passing to FT_New_Face_From_FSSpec.

147
148
149
150
return
151

FreeType error code. 0 means success.

152
153
154

155
[Index]
156
157
[TOC]
158
 
159
160

FT_GetFile_From_Mac_ATS_Name

161
162
Defined in FT_MAC_H (freetype/ftmac.h).
163

164
165
 
166
  FT_EXPORT( FT_Error )
167
  FT_GetFile_From_Mac_ATS_Name( const char*  fontName,
168
                                FSSpec*      pathSpec,
169
                                FT_Long*     face_index )
170
                              FT_DEPRECATED_ATTRIBUTE;
171
 
172

173
174

Return an FSSpec for the disk file containing the named font.

175

176
input
177

178
179
fontName
180

Mac OS name of the font in ATS framework.

181
182
183
184
output
185

186
187
pathSpec
188

FSSpec to the file. For passing to FT_New_Face_From_FSSpec.

189
190
face_index
191

Index of the face. For passing to FT_New_Face_From_FSSpec.

192
193
194
195
return
196

FreeType error code. 0 means success.

197
198
199

200
[Index]
201
202
[TOC]
203
 
204
205

FT_GetFilePath_From_Mac_ATS_Name

206
207
Defined in FT_MAC_H (freetype/ftmac.h).
208

209
210
 
211
  FT_EXPORT( FT_Error )
212
  FT_GetFilePath_From_Mac_ATS_Name( const char*  fontName,
213
                                    UInt8*       path,
214
                                    UInt32       maxPathSize,
215
                                    FT_Long*     face_index )
216
                                  FT_DEPRECATED_ATTRIBUTE;
217
 
218

219
220

Return a pathname of the disk file and face index for given font name which is handled by ATS framework.

221

222
input
223

224
225
fontName
226

Mac OS name of the font in ATS framework.

227
228
229
230
output
231

232
233
path
234

Buffer to store pathname of the file. For passing to FT_New_Face. The client must allocate this buffer before calling this function.

235
236
maxPathSize
237

Lengths of the buffer ‘path’ that client allocated.

238
239
face_index
240

Index of the face. For passing to FT_New_Face.

241
242
243
244
return
245

FreeType error code. 0 means success.

246
247
248

249
[Index]
250
251
[TOC]
252
 
253
254

FT_New_Face_From_FSSpec

255
256
Defined in FT_MAC_H (freetype/ftmac.h).
257

258
259
 
260
  FT_EXPORT( FT_Error )
261
  FT_New_Face_From_FSSpec( FT_Library     library,
262
                           const FSSpec  *spec,
263
                           FT_Long        face_index,
264
                           FT_Face       *aface )
265
                         FT_DEPRECATED_ATTRIBUTE;
266
 
267

268
269

Create a new face object from a given resource and typeface index using an FSSpec to the font file.

270

271
inout
272

273
274
library
275

A handle to the library resource.

276
277
278
279
input
280

281
282
spec
283

FSSpec to the font file.

284
285
face_index
286

The index of the face within the resource. The first face has index 0.

287
288
289
290
output
291

292
293
aface
294

A handle to a new face object.

295
296
297
298
return
299

FreeType error code. 0 means success.

300
301
note
302

FT_New_Face_From_FSSpec is identical to FT_New_Face except it accepts an FSSpec instead of a path.

303
304
305

306
[Index]
307
308
[TOC]
309
 
310
311

FT_New_Face_From_FSRef

312
313
Defined in FT_MAC_H (freetype/ftmac.h).
314

315
316
 
317
  FT_EXPORT( FT_Error )
318
  FT_New_Face_From_FSRef( FT_Library    library,
319
                          const FSRef  *ref,
320
                          FT_Long       face_index,
321
                          FT_Face      *aface )
322
                        FT_DEPRECATED_ATTRIBUTE;
323
 
324

325
326

Create a new face object from a given resource and typeface index using an FSRef to the font file.

327

328
inout
329

330
331
library
332

A handle to the library resource.

333
334
335
336
input
337

338
339
spec
340

FSRef to the font file.

341
342
face_index
343

The index of the face within the resource. The first face has index 0.

344
345
346
347
output
348

349
350
aface
351

A handle to a new face object.

352
353
354
355
return
356

FreeType error code. 0 means success.

357
358
note
359

FT_New_Face_From_FSRef is identical to FT_New_Face except it accepts an FSRef instead of a path.

360
361
362

363
[Index]
364
365
[TOC]
366
 
367
368