modules/freetype2/include/fterrdef.h

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

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

mercurial