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