vrshoot

annotate libs/ft2static/freetype/fterrdef.h @ 1:e7ca128b8713

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