ReactOS 0.4.16-dev-1078-g21d3e29
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-2019 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
59 "no error" )
60
61 FT_ERRORDEF_( Cannot_Open_Resource, 0x01,
62 "cannot open resource" )
63 FT_ERRORDEF_( Unknown_File_Format, 0x02,
65 FT_ERRORDEF_( Invalid_File_Format, 0x03,
66 "broken file" )
67 FT_ERRORDEF_( Invalid_Version, 0x04,
69 FT_ERRORDEF_( Lower_Module_Version, 0x05,
70 "module version is too low" )
71 FT_ERRORDEF_( Invalid_Argument, 0x06,
72 "invalid argument" )
73 FT_ERRORDEF_( Unimplemented_Feature, 0x07,
75 FT_ERRORDEF_( Invalid_Table, 0x08,
76 "broken table" )
77 FT_ERRORDEF_( Invalid_Offset, 0x09,
78 "broken offset within table" )
79 FT_ERRORDEF_( Array_Too_Large, 0x0A,
80 "array allocation size too large" )
81 FT_ERRORDEF_( Missing_Module, 0x0B,
82 "missing module" )
83 FT_ERRORDEF_( Missing_Property, 0x0C,
84 "missing property" )
85
86 /* glyph/character errors */
87
88 FT_ERRORDEF_( Invalid_Glyph_Index, 0x10,
89 "invalid glyph index" )
90 FT_ERRORDEF_( Invalid_Character_Code, 0x11,
91 "invalid character code" )
92 FT_ERRORDEF_( Invalid_Glyph_Format, 0x12,
93 "unsupported glyph image format" )
94 FT_ERRORDEF_( Cannot_Render_Glyph, 0x13,
95 "cannot render this glyph format" )
96 FT_ERRORDEF_( Invalid_Outline, 0x14,
98 FT_ERRORDEF_( Invalid_Composite, 0x15,
99 "invalid composite glyph" )
100 FT_ERRORDEF_( Too_Many_Hints, 0x16,
101 "too many hints" )
102 FT_ERRORDEF_( Invalid_Pixel_Size, 0x17,
103 "invalid pixel size" )
104
105 /* handle errors */
106
107 FT_ERRORDEF_( Invalid_Handle, 0x20,
108 "invalid object handle" )
109 FT_ERRORDEF_( Invalid_Library_Handle, 0x21,
111 FT_ERRORDEF_( Invalid_Driver_Handle, 0x22,
113 FT_ERRORDEF_( Invalid_Face_Handle, 0x23,
115 FT_ERRORDEF_( Invalid_Size_Handle, 0x24,
117 FT_ERRORDEF_( Invalid_Slot_Handle, 0x25,
118 "invalid glyph slot handle" )
119 FT_ERRORDEF_( Invalid_CharMap_Handle, 0x26,
120 "invalid charmap handle" )
121 FT_ERRORDEF_( Invalid_Cache_Handle, 0x27,
122 "invalid cache manager handle" )
123 FT_ERRORDEF_( Invalid_Stream_Handle, 0x28,
125
126 /* driver errors */
127
128 FT_ERRORDEF_( Too_Many_Drivers, 0x30,
129 "too many modules" )
130 FT_ERRORDEF_( Too_Many_Extensions, 0x31,
131 "too many extensions" )
132
133 /* memory errors */
134
135 FT_ERRORDEF_( Out_Of_Memory, 0x40,
136 "out of memory" )
137 FT_ERRORDEF_( Unlisted_Object, 0x41,
138 "unlisted object" )
139
140 /* stream errors */
141
142 FT_ERRORDEF_( Cannot_Open_Stream, 0x51,
143 "cannot open stream" )
144 FT_ERRORDEF_( Invalid_Stream_Seek, 0x52,
146 FT_ERRORDEF_( Invalid_Stream_Skip, 0x53,
148 FT_ERRORDEF_( Invalid_Stream_Read, 0x54,
150 FT_ERRORDEF_( Invalid_Stream_Operation, 0x55,
152 FT_ERRORDEF_( Invalid_Frame_Operation, 0x56,
153 "invalid frame operation" )
154 FT_ERRORDEF_( Nested_Frame_Access, 0x57,
155 "nested frame access" )
156 FT_ERRORDEF_( Invalid_Frame_Read, 0x58,
157 "invalid frame read" )
158
159 /* raster errors */
160
161 FT_ERRORDEF_( Raster_Uninitialized, 0x60,
162 "raster uninitialized" )
163 FT_ERRORDEF_( Raster_Corrupted, 0x61,
164 "raster corrupted" )
165 FT_ERRORDEF_( Raster_Overflow, 0x62,
166 "raster overflow" )
167 FT_ERRORDEF_( Raster_Negative_Height, 0x63,
168 "negative height while rastering" )
169
170 /* cache errors */
171
172 FT_ERRORDEF_( Too_Many_Caches, 0x70,
173 "too many registered caches" )
174
175 /* TrueType and SFNT errors */
176
177 FT_ERRORDEF_( Invalid_Opcode, 0x80,
178 "invalid opcode" )
179 FT_ERRORDEF_( Too_Few_Arguments, 0x81,
180 "too few arguments" )
181 FT_ERRORDEF_( Stack_Overflow, 0x82,
182 "stack overflow" )
183 FT_ERRORDEF_( Code_Overflow, 0x83,
184 "code overflow" )
185 FT_ERRORDEF_( Bad_Argument, 0x84,
186 "bad argument" )
187 FT_ERRORDEF_( Divide_By_Zero, 0x85,
188 "division by zero" )
189 FT_ERRORDEF_( Invalid_Reference, 0x86,
191 FT_ERRORDEF_( Debug_OpCode, 0x87,
192 "found debug opcode" )
193 FT_ERRORDEF_( ENDF_In_Exec_Stream, 0x88,
194 "found ENDF opcode in execution stream" )
195 FT_ERRORDEF_( Nested_DEFS, 0x89,
196 "nested DEFS" )
197 FT_ERRORDEF_( Invalid_CodeRange, 0x8A,
198 "invalid code range" )
199 FT_ERRORDEF_( Execution_Too_Long, 0x8B,
200 "execution context too long" )
201 FT_ERRORDEF_( Too_Many_Function_Defs, 0x8C,
202 "too many function definitions" )
203 FT_ERRORDEF_( Too_Many_Instruction_Defs, 0x8D,
204 "too many instruction definitions" )
205 FT_ERRORDEF_( Table_Missing, 0x8E,
206 "SFNT font table missing" )
207 FT_ERRORDEF_( Horiz_Header_Missing, 0x8F,
208 "horizontal header (hhea) table missing" )
209 FT_ERRORDEF_( Locations_Missing, 0x90,
210 "locations (loca) table missing" )
211 FT_ERRORDEF_( Name_Table_Missing, 0x91,
212 "name table missing" )
213 FT_ERRORDEF_( CMap_Table_Missing, 0x92,
214 "character map (cmap) table missing" )
215 FT_ERRORDEF_( Hmtx_Table_Missing, 0x93,
216 "horizontal metrics (hmtx) table missing" )
217 FT_ERRORDEF_( Post_Table_Missing, 0x94,
218 "PostScript (post) table missing" )
219 FT_ERRORDEF_( Invalid_Horiz_Metrics, 0x95,
220 "invalid horizontal metrics" )
221 FT_ERRORDEF_( Invalid_CharMap_Format, 0x96,
222 "invalid character map (cmap) format" )
223 FT_ERRORDEF_( Invalid_PPem, 0x97,
224 "invalid ppem value" )
225 FT_ERRORDEF_( Invalid_Vert_Metrics, 0x98,
226 "invalid vertical metrics" )
227 FT_ERRORDEF_( Could_Not_Find_Context, 0x99,
228 "could not find context" )
229 FT_ERRORDEF_( Invalid_Post_Table_Format, 0x9A,
230 "invalid PostScript (post) table format" )
231 FT_ERRORDEF_( Invalid_Post_Table, 0x9B,
232 "invalid PostScript (post) table" )
233 FT_ERRORDEF_( DEF_In_Glyf_Bytecode, 0x9C,
234 "found FDEF or IDEF opcode in glyf bytecode" )
235 FT_ERRORDEF_( Missing_Bitmap, 0x9D,
236 "missing bitmap in strike" )
237
238 /* CFF, CID, and Type 1 errors */
239
240 FT_ERRORDEF_( Syntax_Error, 0xA0,
241 "opcode syntax error" )
242 FT_ERRORDEF_( Stack_Underflow, 0xA1,
243 "argument stack underflow" )
244 FT_ERRORDEF_( Ignore, 0xA2,
245 "ignore" )
246 FT_ERRORDEF_( No_Unicode_Glyph_Name, 0xA3,
247 "no Unicode glyph name found" )
248 FT_ERRORDEF_( Glyph_Too_Big, 0xA4,
249 "glyph too big for hinting" )
250
251 /* BDF errors */
252
253 FT_ERRORDEF_( Missing_Startfont_Field, 0xB0,
254 "`STARTFONT' field missing" )
255 FT_ERRORDEF_( Missing_Font_Field, 0xB1,
256 "`FONT' field missing" )
257 FT_ERRORDEF_( Missing_Size_Field, 0xB2,
258 "`SIZE' field missing" )
259 FT_ERRORDEF_( Missing_Fontboundingbox_Field, 0xB3,
260 "`FONTBOUNDINGBOX' field missing" )
261 FT_ERRORDEF_( Missing_Chars_Field, 0xB4,
262 "`CHARS' field missing" )
263 FT_ERRORDEF_( Missing_Startchar_Field, 0xB5,
264 "`STARTCHAR' field missing" )
265 FT_ERRORDEF_( Missing_Encoding_Field, 0xB6,
266 "`ENCODING' field missing" )
267 FT_ERRORDEF_( Missing_Bbx_Field, 0xB7,
268 "`BBX' field missing" )
269 FT_ERRORDEF_( Bbx_Too_Big, 0xB8,
270 "`BBX' too big" )
271 FT_ERRORDEF_( Corrupted_Font_Header, 0xB9,
272 "Font header corrupted or missing fields" )
273 FT_ERRORDEF_( Corrupted_Font_Glyphs, 0xBA,
274 "Font glyphs corrupted or missing fields" )
275
276 /* */
277
278
279/* END */
#define read
Definition: acwin.h:96
#define open
Definition: acwin.h:95
#define skip(...)
Definition: atltest.h:64
#define broken(x)
Definition: atltest.h:178
operation
Definition: copy.c:29
INT unimplemented(INT argc, WCHAR **argv)
Definition: main.c:352
while(CdLookupNextInitialFileDirent(IrpContext, Fcb, FileContext))
FT_Library library
Definition: cffdrivr.c:661
Definition: _map.h:48
static TAGID TAGID find
Definition: db.cpp:155
static WCHAR unknown[MAX_STRING_RESOURCE_LEN]
Definition: object.c:1605
static WCHAR no[MAX_STRING_RESOURCE_LEN]
Definition: object.c:2340
static const WCHAR version[]
Definition: asmname.c:66
cannot open resource broken file module version is too low unimplemented feature broken offset within table missing module invalid glyph index unsupported glyph image format invalid outline too many hints invalid object handle invalid module handle invalid size handle invalid charmap handle invalid stream handle too many extensions unlisted object invalid stream seek invalid stream read invalid frame operation invalid frame read raster corrupted negative height while rastering invalid opcode stack overflow bad argument invalid reference found ENDF opcode in execution stream invalid code range too many function definitions SFNT font table missing name table missing horizontal PostScript(post) table missing" ) FT_ERRORDEF_( Invalid_Horiz_Metrics
#define FT_ERRORDEF_(e, v, s)
Definition: fterrors.h:186
#define FT_NOERRORDEF_(e, v, s)
Definition: fterrors.h:190
@ Ok
Definition: gdiplustypes.h:26
GLint GLint GLsizei GLsizei height
Definition: gl.h:1546
GLsizei const GLint * locations
Definition: glext.h:10542
GLsizeiptr size
Definition: glext.h:5919
GLintptr offset
Definition: glext.h:5920
GLuint index
Definition: glext.h:6031
GLenum GLuint GLint GLenum face
Definition: glext.h:7025
GLsizei GLenum const GLvoid GLuint GLsizei GLfloat * metrics
Definition: glext.h:11745
GLenum GLint * range
Definition: glext.h:7539
GLint reference
Definition: glext.h:11729
GLuint in
Definition: glext.h:9616
GLuint GLint GLboolean GLint GLenum access
Definition: glext.h:7866
GLbyte by
Definition: glext.h:8766
#define debug(msg)
Definition: key_call.c:71
#define error(str)
Definition: mkdosfs.c:1605
#define for
Definition: utility.h:88
static UINT UINT LPWORD glyphs
Definition: font.c:44
static char memory[1024 *256]
Definition: process.c:116
UINT WINAPI nested(MSIHANDLE hinst)
Definition: custom.c:565
const char * fields[10]
Definition: parser.c:313
static const WCHAR invalid[]
Definition: assoc.c:39
INTERNETFEATURELIST feature
Definition: misc.c:1719
ENCODING
Definition: more.c:493
Definition: mk_font.cpp:20
__kernel_entry _Inout_ _Inout_ PSIZE_T _In_ ULONG FreeType
Definition: mmfuncs.h:174
int seek(void *fd, ulong off, int mode)
Definition: pe.c:51
int zero
Definition: sehframes.cpp:29
namespace GUID const ADDRINFOEXW * hints
Definition: sock.c:80
static void render(void)
Definition: ssstars.c:272
Definition: vfat.h:185
Definition: uimain.c:89
Definition: cache.c:49
Definition: inflate.c:139
Definition: http.c:7252
Definition: parser.c:44
Definition: fci.c:127
Definition: format.c:58
Definition: name.c:39
Definition: mesh.c:5330
Definition: format.c:80
Definition: parse.h:23
Definition: pdh_main.c:96
wchar_t tm const _CrtWcstime_Writes_and_advances_ptr_ count wchar_t ** out
Definition: wcsftime.cpp:383