1 /***************************************************************************/
5 /* FreeType error codes (specification). */
7 /* Copyright 1996-2000 by */
8 /* David Turner, Robert Wilhelm, and Werner Lemberg. */
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. */
16 /***************************************************************************/
19 /*************************************************************************/
21 /* This file is used to define the FreeType error enumeration constants */
22 /* It can also be used to create an error message table easily with */
26 /* #undef FTERRORS_H */
27 /* #define FT_ERRORDEF( e, v, s ) { e, s }, */
28 /* #define FT_ERROR_START_LIST { */
29 /* #define FT_ERROR_END_LIST { 0, 0 } }; */
34 /* const char* err_msg */
37 /* #include <freetype/fterrors.h> */
40 /*************************************************************************/
49 #define FT_ERRORDEF( e, v, s ) e = v,
50 #define FT_ERROR_START_LIST enum {
51 #define FT_ERROR_END_LIST FT_Err_Max };
53 #endif /* !FT_ERRORDEF */
56 #ifdef FT_ERROR_START_LIST
60 FT_ERRORDEF( FT_Err_Ok
, 0x0000, \
62 FT_ERRORDEF( FT_Err_Cannot_Open_Resource
, 0x0001, \
64 FT_ERRORDEF( FT_Err_Unknown_File_Format
, 0x0002, \
65 "unknown file format" )
66 FT_ERRORDEF( FT_Err_Invalid_File_Format
, 0x0003, \
69 FT_ERRORDEF( FT_Err_Invalid_Argument
, 0x0010, \
71 FT_ERRORDEF( FT_Err_Invalid_Handle
, 0x0011, \
72 "invalid object handle" )
73 FT_ERRORDEF( FT_Err_Invalid_Glyph_Index
, 0x0012, \
74 "invalid glyph index" )
75 FT_ERRORDEF( FT_Err_Invalid_Character_Code
, 0x0013, \
76 "invalid character code" )
78 FT_ERRORDEF( FT_Err_Unimplemented_Feature
, 0x0020, \
79 "unimplemented feature" )
80 FT_ERRORDEF( FT_Err_Invalid_Glyph_Format
, 0x0021, \
81 "unsupported glyph image format" )
82 FT_ERRORDEF( FT_Err_Cannot_Render_Glyph
, 0x0022, \
83 "cannot render this glyph format" )
85 FT_ERRORDEF( FT_Err_Invalid_Library_Handle
, 0x0030, \
86 "invalid library handle" )
87 FT_ERRORDEF( FT_Err_Invalid_Driver_Handle
, 0x0031, \
88 "invalid module handle" )
89 FT_ERRORDEF( FT_Err_Invalid_Face_Handle
, 0x0032, \
90 "invalid face handle" )
91 FT_ERRORDEF( FT_Err_Invalid_Size_Handle
, 0x0033, \
92 "invalid size handle" )
93 FT_ERRORDEF( FT_Err_Invalid_Slot_Handle
, 0x0034, \
94 "invalid glyph slot handle" )
95 FT_ERRORDEF( FT_Err_Invalid_CharMap_Handle
, 0x0035, \
96 "invalid charmap handle" )
97 FT_ERRORDEF( FT_Err_Invalid_Outline
, 0x0036, \
99 FT_ERRORDEF( FT_Err_Invalid_Version
, 0x0037, \
100 "invalid FreeType version" )
101 FT_ERRORDEF( FT_Err_Lower_Module_Version
, 0x0038, \
102 "module version is too low" )
104 FT_ERRORDEF( FT_Err_Too_Many_Drivers
, 0x0040, \
106 FT_ERRORDEF( FT_Err_Too_Many_Extensions
, 0x0041, \
107 "too many extensions" )
109 FT_ERRORDEF( FT_Err_Out_Of_Memory
, 0x0050, \
111 FT_ERRORDEF( FT_Err_Unlisted_Object
, 0x0051, \
114 FT_ERRORDEF( FT_Err_Invalid_Stream_Handle
, 0x0060, \
115 "invalid stream handle" )
116 FT_ERRORDEF( FT_Err_Cannot_Open_Stream
, 0x0061, \
117 "cannot open stream" )
118 FT_ERRORDEF( FT_Err_Invalid_Stream_Seek
, 0x0062, \
119 "invalid stream seek" )
120 FT_ERRORDEF( FT_Err_Invalid_Stream_Skip
, 0x0063, \
121 "invalid stream skip" )
122 FT_ERRORDEF( FT_Err_Invalid_Stream_Read
, 0x0064, \
123 "invalid stream read" )
124 FT_ERRORDEF( FT_Err_Invalid_Stream_Operation
, 0x0065, \
125 "invalid stream operation" )
126 FT_ERRORDEF( FT_Err_Invalid_Frame_Operation
, 0x0066, \
127 "invalid frame operation" )
128 FT_ERRORDEF( FT_Err_Nested_Frame_Access
, 0x0067, \
129 "nested frame access" )
130 FT_ERRORDEF( FT_Err_Invalid_Frame_Read
, 0x0068, \
131 "invalid frame read" )
133 FT_ERRORDEF( FT_Err_Invalid_Composite
, 0x0070, \
134 "invalid composite glyph" )
135 FT_ERRORDEF( FT_Err_Too_Many_Hints
, 0x0071, \
138 FT_ERRORDEF( FT_Err_Raster_Uninitialized
, 0x0080, \
139 "raster uninitialized" )
140 FT_ERRORDEF( FT_Err_Raster_Corrupted
, 0x0081, \
142 FT_ERRORDEF( FT_Err_Raster_Overflow
, 0x0082, \
144 FT_ERRORDEF( FT_Err_Raster_Negative_Height
, 0x0083, \
145 "negative height while rastering" )
147 /* range 0x400 - 0x4FF is reserved for TrueType specific stuff */
149 /* range 0x500 - 0x5FF is reserved for CFF specific stuff */
151 /* range 0x600 - 0x6FF is reserved for Type1 specific stuff */
153 #ifdef FT_ERROR_END_LIST
158 #undef FT_ERROR_START_LIST
159 #undef FT_ERROR_END_LIST
163 #endif /* FTERRORS_H */