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