4349 |
Serge |
1 |
|
|
|
2 |
"http://www.w3.org/TR/html4/loose.dtd"> |
|
|
3 |
|
|
|
4 |
|
|
|
5 |
|
|
|
6 |
FreeType-2.5.0 API Reference |
|
|
7 |
|
|
|
8 |
body { font-family: Verdana, Geneva, Arial, Helvetica, serif; |
|
|
9 |
color: #000000; |
|
|
10 |
background: #FFFFFF; } |
|
|
11 |
|
|
|
12 |
p { text-align: justify; } |
|
|
13 |
h1 { text-align: center; } |
|
|
14 |
li { text-align: justify; } |
|
|
15 |
td { padding: 0 0.5em 0 0.5em; } |
|
|
16 |
td.left { padding: 0 0.5em 0 0.5em; |
|
|
17 |
text-align: left; } |
|
|
18 |
|
|
|
19 |
a:link { color: #0000EF; } |
|
|
20 |
a:visited { color: #51188E; } |
|
|
21 |
a:hover { color: #FF0000; } |
|
|
22 |
|
|
|
23 |
span.keyword { font-family: monospace; |
|
|
24 |
text-align: left; |
|
|
25 |
white-space: pre; |
|
|
26 |
color: darkblue; } |
|
|
27 |
|
|
|
28 |
pre.colored { color: blue; } |
|
|
29 |
|
|
|
30 |
ul.empty { list-style-type: none; } |
|
|
31 |
|
|
|
32 |
|
|
|
33 |
|
|
|
34 |
|
|
|
35 |
|
|
|
38 |
FreeType-2.5.0 API Reference
|
|
|
39 |
|
|
|
40 |
|
|
|
41 |
Mac Specific Interface |
|
|
42 |
|
|
|
43 |
Synopsis
|
|
|
44 |
|
|
|
49 |
|
|
|
50 |
|
|
|
51 |
The following definitions are only available if FreeType is compiled on a Macintosh.
|
|
|
52 |
|
|
|
|
53 |
|
|
|
54 |
|
|
|
55 |
|
|
|
56 |
Defined in FT_MAC_H (freetype/ftmac.h). |
|
|
57 |
|
|
|
|
58 |
|
|
|
68 |
|
|
|
69 |
Create a new face object from a FOND resource.
|
|
|
70 |
|
|
|
|
71 |
|
|
|
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 |
|
|
|
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 |
|
|
|
113 |
|
|
|
114 |
|
|
|
154 |
|
|
|
155 |
|
|
|
158 |
|
|
|
159 |
|
|
|
199 |
|
|
|
200 |
|
|
|
203 |
|
|
|
204 |
|
|
|
205 |
|
|
|
206 |
|
|
|
207 |
Defined in FT_MAC_H (freetype/ftmac.h). |
|
|
208 |
|
|
|
|
209 |
|
|
|
219 |
|
|
|
220 |
Return a pathname of the disk file and face index for given font name which is handled by ATS framework.
|
|
|
221 |
|
|
|
|
222 |
|
|
|
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 |
|
|
|
252 |
|
|
|
253 |
|
|
|
254 |
|
|
|
255 |
|
|
|
256 |
Defined in FT_MAC_H (freetype/ftmac.h). |
|
|
257 |
|
|
|
|
258 |
|
|
|
268 |
|
|
|
269 |
Create a new face object from a given resource and typeface index using an FSSpec to the font file.
|
|
|
270 |
|
|
|
|
271 |
|
|
|
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 |
|
|
|
298 |
return | |
|
|
299 |
FreeType error code. 0 means success.
|
|
|
300 |
|
|
|
|
301 |
|
|
|
304 |
|
|
|
|
305 |
|
|
|
306 |
|
|
|
309 |
|
|
|
310 |
|
|
|
311 |
|
|
|
312 |
|
|
|
313 |
Defined in FT_MAC_H (freetype/ftmac.h). |
|
|
314 |
|
|
|
|
315 |
|
|
|
325 |
|
|
|
326 |
Create a new face object from a given resource and typeface index using an FSRef to the font file.
|
|
|
327 |
|
|
|
|
328 |
|
|
|
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 |
|
|
|
355 |
return | |
|
|
356 |
FreeType error code. 0 means success.
|
|
|
357 |
|
|
|
|
358 |
|
|
|
361 |
|
|
|
|
362 |
|
|
|
363 |
|
|
|
366 |
|
|
|
367 |
|
|
|
368 |
|
!DOCTYPE>