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 |
TrueTypeGX/AAT Validation |
|
|
42 |
|
|
|
43 |
Synopsis
|
|
|
44 |
|
|
|
49 |
|
|
|
50 |
|
|
|
51 |
This section contains the declaration of functions to validate some TrueTypeGX tables (feat, mort, morx, bsln, just, kern, opbd, trak, prop, lcar).
|
|
|
52 |
|
|
|
|
53 |
|
|
|
54 |
|
|
|
55 |
|
|
|
56 |
Defined in FT_GX_VALIDATE_H (freetype/ftgxval.h). |
|
|
57 |
|
|
|
|
58 |
|
|
|
59 |
|
|
|
60 |
#define FT_VALIDATE_GX_LENGTH (FT_VALIDATE_GX_LAST_INDEX + 1) |
|
|
61 |
|
|
|
62 |
|
|
|
|
63 |
|
|
|
64 |
The number of tables checked in this module. Use it as a parameter for the ‘table-length’ argument of function FT_TrueTypeGX_Validate.
|
|
|
65 |
|
|
|
|
66 |
|
|
|
|
67 |
|
|
|
68 |
|
|
|
71 |
|
|
|
72 |
|
|
|
73 |
|
|
|
74 |
|
|
|
75 |
Defined in FT_GX_VALIDATE_H (freetype/ftgxval.h). |
|
|
76 |
|
|
|
|
77 |
|
|
|
102 |
|
|
|
105 |
values | |
|
|
106 |
|
|
|
107 |
|
|
108 |
FT_VALIDATE_feat | |
|
|
109 |
Validate ‘feat’ table.
|
|
|
110 |
|
|
|
|
111 |
FT_VALIDATE_mort | |
|
|
112 |
Validate ‘mort’ table.
|
|
|
113 |
|
|
|
|
114 |
FT_VALIDATE_morx | |
|
|
115 |
Validate ‘morx’ table.
|
|
|
116 |
|
|
|
|
117 |
FT_VALIDATE_bsln | |
|
|
118 |
Validate ‘bsln’ table.
|
|
|
119 |
|
|
|
|
120 |
FT_VALIDATE_just | |
|
|
121 |
Validate ‘just’ table.
|
|
|
122 |
|
|
|
|
123 |
FT_VALIDATE_kern | |
|
|
124 |
Validate ‘kern’ table.
|
|
|
125 |
|
|
|
|
126 |
FT_VALIDATE_opbd | |
|
|
127 |
Validate ‘opbd’ table.
|
|
|
128 |
|
|
|
|
129 |
FT_VALIDATE_trak | |
|
|
130 |
Validate ‘trak’ table.
|
|
|
131 |
|
|
|
|
132 |
FT_VALIDATE_prop | |
|
|
133 |
Validate ‘prop’ table.
|
|
|
134 |
|
|
|
|
135 |
FT_VALIDATE_lcar | |
|
|
136 |
Validate ‘lcar’ table.
|
|
|
137 |
|
|
|
|
138 |
FT_VALIDATE_GX | |
|
|
139 |
Validate all TrueTypeGX tables (feat, mort, morx, bsln, just, kern, opbd, trak, prop and lcar).
|
|
|
140 |
|
|
|
|
141 |
| |
|
|
142 |
|
|
|
|
143 |
|
|
|
|
144 |
|
|
|
145 |
|
|
|
148 |
|
|
|
149 |
|
|
|
150 |
|
|
|
151 |
|
|
|
152 |
Defined in FT_GX_VALIDATE_H (freetype/ftgxval.h). |
|
|
153 |
|
|
|
|
154 |
|
|
|
163 |
|
|
|
164 |
Validate various TrueTypeGX tables to assure that all offsets and indices are valid. The idea is that a higher-level library which actually does the text layout can access those tables without error checking (which can be quite time consuming).
|
|
|
165 |
|
|
|
|
166 |
|
|
|
180 |
output | |
|
|
181 |
|
|
|
182 |
|
|
183 |
tables | |
|
|
184 |
The array where all validated sfnt tables are stored. The array itself must be allocated by a client.
|
|
|
185 |
|
|
|
|
186 |
| |
|
|
187 |
|
|
|
|
188 |
return | |
|
|
189 |
FreeType error code. 0 means success.
|
|
|
190 |
|
|
|
|
191 |
note | |
|
|
192 |
This function only works with TrueTypeGX fonts, returning an error otherwise.
|
|
|
193 |
After use, the application should deallocate the buffers pointed to by each ‘tables’ element, by calling FT_TrueTypeGX_Free. A NULL value indicates that the table either doesn't exist in the font, the application hasn't asked for validation, or the validator doesn't have the ability to validate the sfnt table.
|
|
|
194 |
|
|
|
|
195 |
|
|
|
|
196 |
|
|
|
197 |
|
|
|
200 |
|
|
|
201 |
|
|
|
231 |
|
|
|
232 |
|
|
|
235 |
|
|
|
236 |
|
|
|
237 |
|
|
|
238 |
|
|
|
239 |
Defined in FT_GX_VALIDATE_H (freetype/ftgxval.h). |
|
|
240 |
|
|
|
|
241 |
|
|
|
249 |
|
|
|
252 |
values | |
|
|
253 |
|
|
|
254 |
|
|
255 |
FT_VALIDATE_MS | |
|
|
256 |
Handle the ‘kern’ table as a classic Microsoft kern table.
|
|
|
257 |
|
|
|
|
258 |
FT_VALIDATE_APPLE | |
|
|
259 |
Handle the ‘kern’ table as a classic Apple kern table.
|
|
|
260 |
|
|
|
|
261 |
FT_VALIDATE_CKERN | |
|
|
262 |
Handle the ‘kern’ as either classic Apple or Microsoft kern table.
|
|
|
263 |
|
|
|
|
264 |
| |
|
|
265 |
|
|
|
|
266 |
|
|
|
|
267 |
|
|
|
268 |
|
|
|
271 |
|
|
|
272 |
|
|
|
273 |
|
|
|
274 |
|
|
|
275 |
Defined in FT_GX_VALIDATE_H (freetype/ftgxval.h). |
|
|
276 |
|
|
|
|
277 |
|
|
|
285 |
|
|
|
286 |
Validate classic (16-bit format) kern table to assure that the offsets and indices are valid. The idea is that a higher-level library which actually does the text layout can access those tables without error checking (which can be quite time consuming).
|
|
|
287 |
The ‘kern’ table validator in FT_TrueTypeGX_Validate deals with both the new 32-bit format and the classic 16-bit format, while FT_ClassicKern_Validate only supports the classic 16-bit format.
|
|
|
288 |
|
|
|
|
289 |
|
|
|
300 |
|
|
|
308 |
return | |
|
|
309 |
FreeType error code. 0 means success.
|
|
|
310 |
|
|
|
|
311 |
note | |
|
|
312 |
After use, the application should deallocate the buffers pointed to by ‘ckern_table’, by calling FT_ClassicKern_Free. A NULL value indicates that the table doesn't exist in the font.
|
|
|
313 |
|
|
|
|
314 |
|
|
|
|
315 |
|
|
|
316 |
|
|
|
319 |
|
|
|
320 |
|
|
|
350 |
|
|
|
351 |
|
|
|
354 |
|
|
|
355 |
|
|
|
356 |
|
!DOCTYPE>