sdk-world v2026.11.05
PS2 SDK - world tier (copyleft-allowed, non-essential packages)
Loading...
Searching...
No Matches
fterrdef.h
Go to the documentation of this file.
1/****************************************************************************
2 *
3 * fterrdef.h
4 *
5 * FreeType error codes (specification).
6 *
7 * Copyright (C) 2002-2025 by
8 * David Turner, Robert Wilhelm, and Werner Lemberg.
9 *
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.
15 *
16 */
17
18
19 /**************************************************************************
20 *
21 * @section:
22 * error_code_values
23 *
24 * @title:
25 * Error Code Values
26 *
27 * @abstract:
28 * All possible error codes returned by FreeType functions.
29 *
30 * @description:
31 * The list below is taken verbatim from the file `fterrdef.h` (loaded
32 * automatically by including `FT_FREETYPE_H`). The first argument of the
33 * `FT_ERROR_DEF_` macro is the error label; by default, the prefix
34 * `FT_Err_` gets added so that you get error names like
35 * `FT_Err_Cannot_Open_Resource`. The second argument is the error code,
36 * and the last argument an error string, which is not used by FreeType.
37 *
38 * Within your application you should **only** use error names and
39 * **never** its numeric values! The latter might (and actually do)
40 * change in forthcoming FreeType versions.
41 *
42 * Macro `FT_NOERRORDEF_` defines `FT_Err_Ok`, which is always zero. See
43 * the 'Error Enumerations' subsection how to automatically generate a
44 * list of error strings.
45 *
46 */
47
48
49 /**************************************************************************
50 *
51 * @enum:
52 * FT_Err_XXX
53 *
54 */
55
56 /* generic errors */
57
62FT_NOERRORDEF_( Ok, 0x00,
63 "no error" )
64
65 FT_ERRORDEF_( Cannot_Open_Resource, 0x01,
66 "cannot open resource" )
67 FT_ERRORDEF_( Unknown_File_Format, 0x02,
68 "unknown file format" )
69 FT_ERRORDEF_( Invalid_File_Format, 0x03,
70 "broken file" )
71 FT_ERRORDEF_( Invalid_Version, 0x04,
72 "invalid FreeType version" )
73 FT_ERRORDEF_( Lower_Module_Version, 0x05,
74 "module version is too low" )
75 FT_ERRORDEF_( Invalid_Argument, 0x06,
76 "invalid argument" )
77 FT_ERRORDEF_( Unimplemented_Feature, 0x07,
78 "unimplemented feature" )
79 FT_ERRORDEF_( Invalid_Table, 0x08,
80 "broken table" )
81 FT_ERRORDEF_( Invalid_Offset, 0x09,
82 "broken offset within table" )
83 FT_ERRORDEF_( Array_Too_Large, 0x0A,
84 "array allocation size too large" )
85 FT_ERRORDEF_( Missing_Module, 0x0B,
86 "missing module" )
87 FT_ERRORDEF_( Missing_Property, 0x0C,
88 "missing property" )
89
90 /* glyph/character errors */
91
92 FT_ERRORDEF_( Invalid_Glyph_Index, 0x10,
93 "invalid glyph index" )
94 FT_ERRORDEF_( Invalid_Character_Code, 0x11,
95 "invalid character code" )
96 FT_ERRORDEF_( Invalid_Glyph_Format, 0x12,
97 "unsupported glyph image format" )
98 FT_ERRORDEF_( Cannot_Render_Glyph, 0x13,
99 "cannot render this glyph format" )
100 FT_ERRORDEF_( Invalid_Outline, 0x14,
101 "invalid outline" )
102 FT_ERRORDEF_( Invalid_Composite, 0x15,
103 "invalid composite glyph" )
104 FT_ERRORDEF_( Too_Many_Hints, 0x16,
105 "too many hints" )
106 FT_ERRORDEF_( Invalid_Pixel_Size, 0x17,
107 "invalid pixel size" )
108 FT_ERRORDEF_( Invalid_SVG_Document, 0x18,
109 "invalid SVG document" )
110
111 /* handle errors */
112
113 FT_ERRORDEF_( Invalid_Handle, 0x20,
114 "invalid object handle" )
115 FT_ERRORDEF_( Invalid_Library_Handle, 0x21,
116 "invalid library handle" )
117 FT_ERRORDEF_( Invalid_Driver_Handle, 0x22,
118 "invalid module handle" )
119 FT_ERRORDEF_( Invalid_Face_Handle, 0x23,
120 "invalid face handle" )
121 FT_ERRORDEF_( Invalid_Size_Handle, 0x24,
122 "invalid size handle" )
123 FT_ERRORDEF_( Invalid_Slot_Handle, 0x25,
124 "invalid glyph slot handle" )
125 FT_ERRORDEF_( Invalid_CharMap_Handle, 0x26,
126 "invalid charmap handle" )
127 FT_ERRORDEF_( Invalid_Cache_Handle, 0x27,
128 "invalid cache manager handle" )
129 FT_ERRORDEF_( Invalid_Stream_Handle, 0x28,
130 "invalid stream handle" )
131
132 /* driver errors */
133
134 FT_ERRORDEF_( Too_Many_Drivers, 0x30,
135 "too many modules" )
136 FT_ERRORDEF_( Too_Many_Extensions, 0x31,
137 "too many extensions" )
138
139 /* memory errors */
140
141 FT_ERRORDEF_( Out_Of_Memory, 0x40,
142 "out of memory" )
143 FT_ERRORDEF_( Unlisted_Object, 0x41,
144 "unlisted object" )
145
146 /* stream errors */
147
148 FT_ERRORDEF_( Cannot_Open_Stream, 0x51,
149 "cannot open stream" )
150 FT_ERRORDEF_( Invalid_Stream_Seek, 0x52,
151 "invalid stream seek" )
152 FT_ERRORDEF_( Invalid_Stream_Skip, 0x53,
153 "invalid stream skip" )
154 FT_ERRORDEF_( Invalid_Stream_Read, 0x54,
155 "invalid stream read" )
156 FT_ERRORDEF_( Invalid_Stream_Operation, 0x55,
157 "invalid stream operation" )
158 FT_ERRORDEF_( Invalid_Frame_Operation, 0x56,
159 "invalid frame operation" )
160 FT_ERRORDEF_( Nested_Frame_Access, 0x57,
161 "nested frame access" )
162 FT_ERRORDEF_( Invalid_Frame_Read, 0x58,
163 "invalid frame read" )
164
165 /* raster errors */
166
167 FT_ERRORDEF_( Raster_Uninitialized, 0x60,
168 "raster uninitialized" )
169 FT_ERRORDEF_( Raster_Corrupted, 0x61,
170 "raster corrupted" )
171 FT_ERRORDEF_( Raster_Overflow, 0x62,
172 "raster overflow" )
173 FT_ERRORDEF_( Raster_Negative_Height, 0x63,
174 "negative height while rastering" )
175
176 /* cache errors */
177
178 FT_ERRORDEF_( Too_Many_Caches, 0x70,
179 "too many registered caches" )
180
181 /* TrueType and SFNT errors */
182
183 FT_ERRORDEF_( Invalid_Opcode, 0x80,
184 "invalid opcode" )
185 FT_ERRORDEF_( Too_Few_Arguments, 0x81,
186 "too few arguments" )
187 FT_ERRORDEF_( Stack_Overflow, 0x82,
188 "stack overflow" )
189 FT_ERRORDEF_( Code_Overflow, 0x83,
190 "code overflow" )
191 FT_ERRORDEF_( Bad_Argument, 0x84,
192 "bad argument" )
193 FT_ERRORDEF_( Divide_By_Zero, 0x85,
194 "division by zero" )
195 FT_ERRORDEF_( Invalid_Reference, 0x86,
196 "invalid reference" )
197 FT_ERRORDEF_( Debug_OpCode, 0x87,
198 "found debug opcode" )
199 FT_ERRORDEF_( ENDF_In_Exec_Stream, 0x88,
200 "found ENDF opcode in execution stream" )
201 FT_ERRORDEF_( Nested_DEFS, 0x89,
202 "nested DEFS" )
203 FT_ERRORDEF_( Invalid_CodeRange, 0x8A,
204 "invalid code range" )
205 FT_ERRORDEF_( Execution_Too_Long, 0x8B,
206 "execution context too long" )
207 FT_ERRORDEF_( Too_Many_Function_Defs, 0x8C,
208 "too many function definitions" )
209 FT_ERRORDEF_( Too_Many_Instruction_Defs, 0x8D,
210 "too many instruction definitions" )
211 FT_ERRORDEF_( Table_Missing, 0x8E,
212 "SFNT font table missing" )
213 FT_ERRORDEF_( Horiz_Header_Missing, 0x8F,
214 "horizontal header (hhea) table missing" )
215 FT_ERRORDEF_( Locations_Missing, 0x90,
216 "locations (loca) table missing" )
217 FT_ERRORDEF_( Name_Table_Missing, 0x91,
218 "name table missing" )
219 FT_ERRORDEF_( CMap_Table_Missing, 0x92,
220 "character map (cmap) table missing" )
221 FT_ERRORDEF_( Hmtx_Table_Missing, 0x93,
222 "horizontal metrics (hmtx) table missing" )
223 FT_ERRORDEF_( Post_Table_Missing, 0x94,
224 "PostScript (post) table missing" )
225 FT_ERRORDEF_( Invalid_Horiz_Metrics, 0x95,
226 "invalid horizontal metrics" )
227 FT_ERRORDEF_( Invalid_CharMap_Format, 0x96,
228 "invalid character map (cmap) format" )
229 FT_ERRORDEF_( Invalid_PPem, 0x97,
230 "invalid ppem value" )
231 FT_ERRORDEF_( Invalid_Vert_Metrics, 0x98,
232 "invalid vertical metrics" )
233 FT_ERRORDEF_( Could_Not_Find_Context, 0x99,
234 "could not find context" )
235 FT_ERRORDEF_( Invalid_Post_Table_Format, 0x9A,
236 "invalid PostScript (post) table format" )
237 FT_ERRORDEF_( Invalid_Post_Table, 0x9B,
238 "invalid PostScript (post) table" )
239 FT_ERRORDEF_( DEF_In_Glyf_Bytecode, 0x9C,
240 "found FDEF or IDEF opcode in glyf bytecode" )
241 FT_ERRORDEF_( Missing_Bitmap, 0x9D,
242 "missing bitmap in strike" )
243 FT_ERRORDEF_( Missing_SVG_Hooks, 0x9E,
244 "SVG hooks have not been set" )
245
246 /* CFF, CID, and Type 1 errors */
247
248 FT_ERRORDEF_( Syntax_Error, 0xA0,
249 "opcode syntax error" )
250 FT_ERRORDEF_( Stack_Underflow, 0xA1,
251 "argument stack underflow" )
252 FT_ERRORDEF_( Ignore, 0xA2,
253 "ignore" )
254 FT_ERRORDEF_( No_Unicode_Glyph_Name, 0xA3,
255 "no Unicode glyph name found" )
256 FT_ERRORDEF_( Glyph_Too_Big, 0xA4,
257 "glyph too big for hinting" )
258
259 /* BDF errors */
260
261 FT_ERRORDEF_( Missing_Startfont_Field, 0xB0,
262 "`STARTFONT' field missing" )
263 FT_ERRORDEF_( Missing_Font_Field, 0xB1,
264 "`FONT' field missing" )
265 FT_ERRORDEF_( Missing_Size_Field, 0xB2,
266 "`SIZE' field missing" )
267 FT_ERRORDEF_( Missing_Fontboundingbox_Field, 0xB3,
268 "`FONTBOUNDINGBOX' field missing" )
269 FT_ERRORDEF_( Missing_Chars_Field, 0xB4,
270 "`CHARS' field missing" )
271 FT_ERRORDEF_( Missing_Startchar_Field, 0xB5,
272 "`STARTCHAR' field missing" )
273 FT_ERRORDEF_( Missing_Encoding_Field, 0xB6,
274 "`ENCODING' field missing" )
275 FT_ERRORDEF_( Missing_Bbx_Field, 0xB7,
276 "`BBX' field missing" )
277 FT_ERRORDEF_( Bbx_Too_Big, 0xB8,
278 "`BBX' too big" )
279 FT_ERRORDEF_( Corrupted_Font_Header, 0xB9,
280 "Font header corrupted or missing fields" )
281 FT_ERRORDEF_( Corrupted_Font_Glyphs, 0xBA,
282 "Font glyphs corrupted or missing fields" )
283
284 /* */
285
286
287/* END */