OLD | NEW |
1 /***************************************************************************/ | 1 /***************************************************************************/ |
2 /* */ | 2 /* */ |
3 /* fterrdef.h */ | 3 /* fterrdef.h */ |
4 /* */ | 4 /* */ |
5 /* FreeType error codes (specification). */ | 5 /* FreeType error codes (specification). */ |
6 /* */ | 6 /* */ |
7 /* Copyright 2002, 2004, 2006, 2007, 2010-2013 by */ | 7 /* Copyright 2002, 2004, 2006, 2007, 2010-2013 by */ |
8 /* David Turner, Robert Wilhelm, and Werner Lemberg. */ | 8 /* David Turner, Robert Wilhelm, and Werner Lemberg. */ |
9 /* */ | 9 /* */ |
10 /* This file is part of the FreeType project, and may only be used, */ | 10 /* This file is part of the FreeType project, and may only be used, */ |
(...skipping 13 matching lines...) Expand all Loading... |
24 /*******************************************************************/ | 24 /*******************************************************************/ |
25 /*******************************************************************/ | 25 /*******************************************************************/ |
26 | 26 |
27 | 27 |
28 /* You need to define both FT_ERRORDEF_ and FT_NOERRORDEF_ before */ | 28 /* You need to define both FT_ERRORDEF_ and FT_NOERRORDEF_ before */ |
29 /* including this file. */ | 29 /* including this file. */ |
30 | 30 |
31 | 31 |
32 /* generic errors */ | 32 /* generic errors */ |
33 | 33 |
34 FT_NOERRORDEF_( Ok, 0x00, \ | 34 FT_NOERRORDEF_( Ok, 0x00, |
35 "no error" ) | 35 "no error" ) |
36 | 36 |
37 FT_ERRORDEF_( Cannot_Open_Resource, 0x01, \ | 37 FT_ERRORDEF_( Cannot_Open_Resource, 0x01, |
38 "cannot open resource" ) | 38 "cannot open resource" ) |
39 FT_ERRORDEF_( Unknown_File_Format, 0x02, \ | 39 FT_ERRORDEF_( Unknown_File_Format, 0x02, |
40 "unknown file format" ) | 40 "unknown file format" ) |
41 FT_ERRORDEF_( Invalid_File_Format, 0x03, \ | 41 FT_ERRORDEF_( Invalid_File_Format, 0x03, |
42 "broken file" ) | 42 "broken file" ) |
43 FT_ERRORDEF_( Invalid_Version, 0x04, \ | 43 FT_ERRORDEF_( Invalid_Version, 0x04, |
44 "invalid FreeType version" ) | 44 "invalid FreeType version" ) |
45 FT_ERRORDEF_( Lower_Module_Version, 0x05, \ | 45 FT_ERRORDEF_( Lower_Module_Version, 0x05, |
46 "module version is too low" ) | 46 "module version is too low" ) |
47 FT_ERRORDEF_( Invalid_Argument, 0x06, \ | 47 FT_ERRORDEF_( Invalid_Argument, 0x06, |
48 "invalid argument" ) | 48 "invalid argument" ) |
49 FT_ERRORDEF_( Unimplemented_Feature, 0x07, \ | 49 FT_ERRORDEF_( Unimplemented_Feature, 0x07, |
50 "unimplemented feature" ) | 50 "unimplemented feature" ) |
51 FT_ERRORDEF_( Invalid_Table, 0x08, \ | 51 FT_ERRORDEF_( Invalid_Table, 0x08, |
52 "broken table" ) | 52 "broken table" ) |
53 FT_ERRORDEF_( Invalid_Offset, 0x09, \ | 53 FT_ERRORDEF_( Invalid_Offset, 0x09, |
54 "broken offset within table" ) | 54 "broken offset within table" ) |
55 FT_ERRORDEF_( Array_Too_Large, 0x0A, \ | 55 FT_ERRORDEF_( Array_Too_Large, 0x0A, |
56 "array allocation size too large" ) | 56 "array allocation size too large" ) |
57 FT_ERRORDEF_( Missing_Module, 0x0B, \ | 57 FT_ERRORDEF_( Missing_Module, 0x0B, |
58 "missing module" ) | 58 "missing module" ) |
59 FT_ERRORDEF_( Missing_Property, 0x0C, \ | 59 FT_ERRORDEF_( Missing_Property, 0x0C, |
60 "missing property" ) | 60 "missing property" ) |
61 | 61 |
62 /* glyph/character errors */ | 62 /* glyph/character errors */ |
63 | 63 |
64 FT_ERRORDEF_( Invalid_Glyph_Index, 0x10, \ | 64 FT_ERRORDEF_( Invalid_Glyph_Index, 0x10, |
65 "invalid glyph index" ) | 65 "invalid glyph index" ) |
66 FT_ERRORDEF_( Invalid_Character_Code, 0x11, \ | 66 FT_ERRORDEF_( Invalid_Character_Code, 0x11, |
67 "invalid character code" ) | 67 "invalid character code" ) |
68 FT_ERRORDEF_( Invalid_Glyph_Format, 0x12, \ | 68 FT_ERRORDEF_( Invalid_Glyph_Format, 0x12, |
69 "unsupported glyph image format" ) | 69 "unsupported glyph image format" ) |
70 FT_ERRORDEF_( Cannot_Render_Glyph, 0x13, \ | 70 FT_ERRORDEF_( Cannot_Render_Glyph, 0x13, |
71 "cannot render this glyph format" ) | 71 "cannot render this glyph format" ) |
72 FT_ERRORDEF_( Invalid_Outline, 0x14, \ | 72 FT_ERRORDEF_( Invalid_Outline, 0x14, |
73 "invalid outline" ) | 73 "invalid outline" ) |
74 FT_ERRORDEF_( Invalid_Composite, 0x15, \ | 74 FT_ERRORDEF_( Invalid_Composite, 0x15, |
75 "invalid composite glyph" ) | 75 "invalid composite glyph" ) |
76 FT_ERRORDEF_( Too_Many_Hints, 0x16, \ | 76 FT_ERRORDEF_( Too_Many_Hints, 0x16, |
77 "too many hints" ) | 77 "too many hints" ) |
78 FT_ERRORDEF_( Invalid_Pixel_Size, 0x17, \ | 78 FT_ERRORDEF_( Invalid_Pixel_Size, 0x17, |
79 "invalid pixel size" ) | 79 "invalid pixel size" ) |
80 | 80 |
81 /* handle errors */ | 81 /* handle errors */ |
82 | 82 |
83 FT_ERRORDEF_( Invalid_Handle, 0x20, \ | 83 FT_ERRORDEF_( Invalid_Handle, 0x20, |
84 "invalid object handle" ) | 84 "invalid object handle" ) |
85 FT_ERRORDEF_( Invalid_Library_Handle, 0x21, \ | 85 FT_ERRORDEF_( Invalid_Library_Handle, 0x21, |
86 "invalid library handle" ) | 86 "invalid library handle" ) |
87 FT_ERRORDEF_( Invalid_Driver_Handle, 0x22, \ | 87 FT_ERRORDEF_( Invalid_Driver_Handle, 0x22, |
88 "invalid module handle" ) | 88 "invalid module handle" ) |
89 FT_ERRORDEF_( Invalid_Face_Handle, 0x23, \ | 89 FT_ERRORDEF_( Invalid_Face_Handle, 0x23, |
90 "invalid face handle" ) | 90 "invalid face handle" ) |
91 FT_ERRORDEF_( Invalid_Size_Handle, 0x24, \ | 91 FT_ERRORDEF_( Invalid_Size_Handle, 0x24, |
92 "invalid size handle" ) | 92 "invalid size handle" ) |
93 FT_ERRORDEF_( Invalid_Slot_Handle, 0x25, \ | 93 FT_ERRORDEF_( Invalid_Slot_Handle, 0x25, |
94 "invalid glyph slot handle" ) | 94 "invalid glyph slot handle" ) |
95 FT_ERRORDEF_( Invalid_CharMap_Handle, 0x26, \ | 95 FT_ERRORDEF_( Invalid_CharMap_Handle, 0x26, |
96 "invalid charmap handle" ) | 96 "invalid charmap handle" ) |
97 FT_ERRORDEF_( Invalid_Cache_Handle, 0x27, \ | 97 FT_ERRORDEF_( Invalid_Cache_Handle, 0x27, |
98 "invalid cache manager handle" ) | 98 "invalid cache manager handle" ) |
99 FT_ERRORDEF_( Invalid_Stream_Handle, 0x28, \ | 99 FT_ERRORDEF_( Invalid_Stream_Handle, 0x28, |
100 "invalid stream handle" ) | 100 "invalid stream handle" ) |
101 | 101 |
102 /* driver errors */ | 102 /* driver errors */ |
103 | 103 |
104 FT_ERRORDEF_( Too_Many_Drivers, 0x30, \ | 104 FT_ERRORDEF_( Too_Many_Drivers, 0x30, |
105 "too many modules" ) | 105 "too many modules" ) |
106 FT_ERRORDEF_( Too_Many_Extensions, 0x31, \ | 106 FT_ERRORDEF_( Too_Many_Extensions, 0x31, |
107 "too many extensions" ) | 107 "too many extensions" ) |
108 | 108 |
109 /* memory errors */ | 109 /* memory errors */ |
110 | 110 |
111 FT_ERRORDEF_( Out_Of_Memory, 0x40, \ | 111 FT_ERRORDEF_( Out_Of_Memory, 0x40, |
112 "out of memory" ) | 112 "out of memory" ) |
113 FT_ERRORDEF_( Unlisted_Object, 0x41, \ | 113 FT_ERRORDEF_( Unlisted_Object, 0x41, |
114 "unlisted object" ) | 114 "unlisted object" ) |
115 | 115 |
116 /* stream errors */ | 116 /* stream errors */ |
117 | 117 |
118 FT_ERRORDEF_( Cannot_Open_Stream, 0x51, \ | 118 FT_ERRORDEF_( Cannot_Open_Stream, 0x51, |
119 "cannot open stream" ) | 119 "cannot open stream" ) |
120 FT_ERRORDEF_( Invalid_Stream_Seek, 0x52, \ | 120 FT_ERRORDEF_( Invalid_Stream_Seek, 0x52, |
121 "invalid stream seek" ) | 121 "invalid stream seek" ) |
122 FT_ERRORDEF_( Invalid_Stream_Skip, 0x53, \ | 122 FT_ERRORDEF_( Invalid_Stream_Skip, 0x53, |
123 "invalid stream skip" ) | 123 "invalid stream skip" ) |
124 FT_ERRORDEF_( Invalid_Stream_Read, 0x54, \ | 124 FT_ERRORDEF_( Invalid_Stream_Read, 0x54, |
125 "invalid stream read" ) | 125 "invalid stream read" ) |
126 FT_ERRORDEF_( Invalid_Stream_Operation, 0x55, \ | 126 FT_ERRORDEF_( Invalid_Stream_Operation, 0x55, |
127 "invalid stream operation" ) | 127 "invalid stream operation" ) |
128 FT_ERRORDEF_( Invalid_Frame_Operation, 0x56, \ | 128 FT_ERRORDEF_( Invalid_Frame_Operation, 0x56, |
129 "invalid frame operation" ) | 129 "invalid frame operation" ) |
130 FT_ERRORDEF_( Nested_Frame_Access, 0x57, \ | 130 FT_ERRORDEF_( Nested_Frame_Access, 0x57, |
131 "nested frame access" ) | 131 "nested frame access" ) |
132 FT_ERRORDEF_( Invalid_Frame_Read, 0x58, \ | 132 FT_ERRORDEF_( Invalid_Frame_Read, 0x58, |
133 "invalid frame read" ) | 133 "invalid frame read" ) |
134 | 134 |
135 /* raster errors */ | 135 /* raster errors */ |
136 | 136 |
137 FT_ERRORDEF_( Raster_Uninitialized, 0x60, \ | 137 FT_ERRORDEF_( Raster_Uninitialized, 0x60, |
138 "raster uninitialized" ) | 138 "raster uninitialized" ) |
139 FT_ERRORDEF_( Raster_Corrupted, 0x61, \ | 139 FT_ERRORDEF_( Raster_Corrupted, 0x61, |
140 "raster corrupted" ) | 140 "raster corrupted" ) |
141 FT_ERRORDEF_( Raster_Overflow, 0x62, \ | 141 FT_ERRORDEF_( Raster_Overflow, 0x62, |
142 "raster overflow" ) | 142 "raster overflow" ) |
143 FT_ERRORDEF_( Raster_Negative_Height, 0x63, \ | 143 FT_ERRORDEF_( Raster_Negative_Height, 0x63, |
144 "negative height while rastering" ) | 144 "negative height while rastering" ) |
145 | 145 |
146 /* cache errors */ | 146 /* cache errors */ |
147 | 147 |
148 FT_ERRORDEF_( Too_Many_Caches, 0x70, \ | 148 FT_ERRORDEF_( Too_Many_Caches, 0x70, |
149 "too many registered caches" ) | 149 "too many registered caches" ) |
150 | 150 |
151 /* TrueType and SFNT errors */ | 151 /* TrueType and SFNT errors */ |
152 | 152 |
153 FT_ERRORDEF_( Invalid_Opcode, 0x80, \ | 153 FT_ERRORDEF_( Invalid_Opcode, 0x80, |
154 "invalid opcode" ) | 154 "invalid opcode" ) |
155 FT_ERRORDEF_( Too_Few_Arguments, 0x81, \ | 155 FT_ERRORDEF_( Too_Few_Arguments, 0x81, |
156 "too few arguments" ) | 156 "too few arguments" ) |
157 FT_ERRORDEF_( Stack_Overflow, 0x82, \ | 157 FT_ERRORDEF_( Stack_Overflow, 0x82, |
158 "stack overflow" ) | 158 "stack overflow" ) |
159 FT_ERRORDEF_( Code_Overflow, 0x83, \ | 159 FT_ERRORDEF_( Code_Overflow, 0x83, |
160 "code overflow" ) | 160 "code overflow" ) |
161 FT_ERRORDEF_( Bad_Argument, 0x84, \ | 161 FT_ERRORDEF_( Bad_Argument, 0x84, |
162 "bad argument" ) | 162 "bad argument" ) |
163 FT_ERRORDEF_( Divide_By_Zero, 0x85, \ | 163 FT_ERRORDEF_( Divide_By_Zero, 0x85, |
164 "division by zero" ) | 164 "division by zero" ) |
165 FT_ERRORDEF_( Invalid_Reference, 0x86, \ | 165 FT_ERRORDEF_( Invalid_Reference, 0x86, |
166 "invalid reference" ) | 166 "invalid reference" ) |
167 FT_ERRORDEF_( Debug_OpCode, 0x87, \ | 167 FT_ERRORDEF_( Debug_OpCode, 0x87, |
168 "found debug opcode" ) | 168 "found debug opcode" ) |
169 FT_ERRORDEF_( ENDF_In_Exec_Stream, 0x88, \ | 169 FT_ERRORDEF_( ENDF_In_Exec_Stream, 0x88, |
170 "found ENDF opcode in execution stream" ) | 170 "found ENDF opcode in execution stream" ) |
171 FT_ERRORDEF_( Nested_DEFS, 0x89, \ | 171 FT_ERRORDEF_( Nested_DEFS, 0x89, |
172 "nested DEFS" ) | 172 "nested DEFS" ) |
173 FT_ERRORDEF_( Invalid_CodeRange, 0x8A, \ | 173 FT_ERRORDEF_( Invalid_CodeRange, 0x8A, |
174 "invalid code range" ) | 174 "invalid code range" ) |
175 FT_ERRORDEF_( Execution_Too_Long, 0x8B, \ | 175 FT_ERRORDEF_( Execution_Too_Long, 0x8B, |
176 "execution context too long" ) | 176 "execution context too long" ) |
177 FT_ERRORDEF_( Too_Many_Function_Defs, 0x8C, \ | 177 FT_ERRORDEF_( Too_Many_Function_Defs, 0x8C, |
178 "too many function definitions" ) | 178 "too many function definitions" ) |
179 FT_ERRORDEF_( Too_Many_Instruction_Defs, 0x8D, \ | 179 FT_ERRORDEF_( Too_Many_Instruction_Defs, 0x8D, |
180 "too many instruction definitions" ) | 180 "too many instruction definitions" ) |
181 FT_ERRORDEF_( Table_Missing, 0x8E, \ | 181 FT_ERRORDEF_( Table_Missing, 0x8E, |
182 "SFNT font table missing" ) | 182 "SFNT font table missing" ) |
183 FT_ERRORDEF_( Horiz_Header_Missing, 0x8F, \ | 183 FT_ERRORDEF_( Horiz_Header_Missing, 0x8F, |
184 "horizontal header (hhea) table missing" ) | 184 "horizontal header (hhea) table missing" ) |
185 FT_ERRORDEF_( Locations_Missing, 0x90, \ | 185 FT_ERRORDEF_( Locations_Missing, 0x90, |
186 "locations (loca) table missing" ) | 186 "locations (loca) table missing" ) |
187 FT_ERRORDEF_( Name_Table_Missing, 0x91, \ | 187 FT_ERRORDEF_( Name_Table_Missing, 0x91, |
188 "name table missing" ) | 188 "name table missing" ) |
189 FT_ERRORDEF_( CMap_Table_Missing, 0x92, \ | 189 FT_ERRORDEF_( CMap_Table_Missing, 0x92, |
190 "character map (cmap) table missing" ) | 190 "character map (cmap) table missing" ) |
191 FT_ERRORDEF_( Hmtx_Table_Missing, 0x93, \ | 191 FT_ERRORDEF_( Hmtx_Table_Missing, 0x93, |
192 "horizontal metrics (hmtx) table missing" ) | 192 "horizontal metrics (hmtx) table missing" ) |
193 FT_ERRORDEF_( Post_Table_Missing, 0x94, \ | 193 FT_ERRORDEF_( Post_Table_Missing, 0x94, |
194 "PostScript (post) table missing" ) | 194 "PostScript (post) table missing" ) |
195 FT_ERRORDEF_( Invalid_Horiz_Metrics, 0x95, \ | 195 FT_ERRORDEF_( Invalid_Horiz_Metrics, 0x95, |
196 "invalid horizontal metrics" ) | 196 "invalid horizontal metrics" ) |
197 FT_ERRORDEF_( Invalid_CharMap_Format, 0x96, \ | 197 FT_ERRORDEF_( Invalid_CharMap_Format, 0x96, |
198 "invalid character map (cmap) format" ) | 198 "invalid character map (cmap) format" ) |
199 FT_ERRORDEF_( Invalid_PPem, 0x97, \ | 199 FT_ERRORDEF_( Invalid_PPem, 0x97, |
200 "invalid ppem value" ) | 200 "invalid ppem value" ) |
201 FT_ERRORDEF_( Invalid_Vert_Metrics, 0x98, \ | 201 FT_ERRORDEF_( Invalid_Vert_Metrics, 0x98, |
202 "invalid vertical metrics" ) | 202 "invalid vertical metrics" ) |
203 FT_ERRORDEF_( Could_Not_Find_Context, 0x99, \ | 203 FT_ERRORDEF_( Could_Not_Find_Context, 0x99, |
204 "could not find context" ) | 204 "could not find context" ) |
205 FT_ERRORDEF_( Invalid_Post_Table_Format, 0x9A, \ | 205 FT_ERRORDEF_( Invalid_Post_Table_Format, 0x9A, |
206 "invalid PostScript (post) table format" ) | 206 "invalid PostScript (post) table format" ) |
207 FT_ERRORDEF_( Invalid_Post_Table, 0x9B, \ | 207 FT_ERRORDEF_( Invalid_Post_Table, 0x9B, |
208 "invalid PostScript (post) table" ) | 208 "invalid PostScript (post) table" ) |
209 | 209 |
210 /* CFF, CID, and Type 1 errors */ | 210 /* CFF, CID, and Type 1 errors */ |
211 | 211 |
212 FT_ERRORDEF_( Syntax_Error, 0xA0, \ | 212 FT_ERRORDEF_( Syntax_Error, 0xA0, |
213 "opcode syntax error" ) | 213 "opcode syntax error" ) |
214 FT_ERRORDEF_( Stack_Underflow, 0xA1, \ | 214 FT_ERRORDEF_( Stack_Underflow, 0xA1, |
215 "argument stack underflow" ) | 215 "argument stack underflow" ) |
216 FT_ERRORDEF_( Ignore, 0xA2, \ | 216 FT_ERRORDEF_( Ignore, 0xA2, |
217 "ignore" ) | 217 "ignore" ) |
218 FT_ERRORDEF_( No_Unicode_Glyph_Name, 0xA3, \ | 218 FT_ERRORDEF_( No_Unicode_Glyph_Name, 0xA3, |
219 "no Unicode glyph name found" ) | 219 "no Unicode glyph name found" ) |
220 FT_ERRORDEF_( Glyph_Too_Big, 0xA4, \ | 220 FT_ERRORDEF_( Glyph_Too_Big, 0xA4, |
221 "glyph to big for hinting" ) | 221 "glyph to big for hinting" ) |
222 | 222 |
223 /* BDF errors */ | 223 /* BDF errors */ |
224 | 224 |
225 FT_ERRORDEF_( Missing_Startfont_Field, 0xB0, \ | 225 FT_ERRORDEF_( Missing_Startfont_Field, 0xB0, |
226 "`STARTFONT' field missing" ) | 226 "`STARTFONT' field missing" ) |
227 FT_ERRORDEF_( Missing_Font_Field, 0xB1, \ | 227 FT_ERRORDEF_( Missing_Font_Field, 0xB1, |
228 "`FONT' field missing" ) | 228 "`FONT' field missing" ) |
229 FT_ERRORDEF_( Missing_Size_Field, 0xB2, \ | 229 FT_ERRORDEF_( Missing_Size_Field, 0xB2, |
230 "`SIZE' field missing" ) | 230 "`SIZE' field missing" ) |
231 FT_ERRORDEF_( Missing_Fontboundingbox_Field, 0xB3, \ | 231 FT_ERRORDEF_( Missing_Fontboundingbox_Field, 0xB3, |
232 "`FONTBOUNDINGBOX' field missing" ) | 232 "`FONTBOUNDINGBOX' field missing" ) |
233 FT_ERRORDEF_( Missing_Chars_Field, 0xB4, \ | 233 FT_ERRORDEF_( Missing_Chars_Field, 0xB4, |
234 "`CHARS' field missing" ) | 234 "`CHARS' field missing" ) |
235 FT_ERRORDEF_( Missing_Startchar_Field, 0xB5, \ | 235 FT_ERRORDEF_( Missing_Startchar_Field, 0xB5, |
236 "`STARTCHAR' field missing" ) | 236 "`STARTCHAR' field missing" ) |
237 FT_ERRORDEF_( Missing_Encoding_Field, 0xB6, \ | 237 FT_ERRORDEF_( Missing_Encoding_Field, 0xB6, |
238 "`ENCODING' field missing" ) | 238 "`ENCODING' field missing" ) |
239 FT_ERRORDEF_( Missing_Bbx_Field, 0xB7, \ | 239 FT_ERRORDEF_( Missing_Bbx_Field, 0xB7, |
240 "`BBX' field missing" ) | 240 "`BBX' field missing" ) |
241 FT_ERRORDEF_( Bbx_Too_Big, 0xB8, \ | 241 FT_ERRORDEF_( Bbx_Too_Big, 0xB8, |
242 "`BBX' too big" ) | 242 "`BBX' too big" ) |
243 FT_ERRORDEF_( Corrupted_Font_Header, 0xB9, \ | 243 FT_ERRORDEF_( Corrupted_Font_Header, 0xB9, |
244 "Font header corrupted or missing fields" ) | 244 "Font header corrupted or missing fields" ) |
245 FT_ERRORDEF_( Corrupted_Font_Glyphs, 0xBA, \ | 245 FT_ERRORDEF_( Corrupted_Font_Glyphs, 0xBA, |
246 "Font glyphs corrupted or missing fields" ) | 246 "Font glyphs corrupted or missing fields" ) |
247 | 247 |
248 | 248 |
249 /* END */ | 249 /* END */ |
OLD | NEW |