nuclear@0: /***************************************************************************/ nuclear@0: /* */ nuclear@0: /* fterrdef.h */ nuclear@0: /* */ nuclear@0: /* FreeType error codes (specification). */ nuclear@0: /* */ nuclear@0: /* Copyright 2002, 2004, 2006, 2007, 2010 by */ nuclear@0: /* David Turner, Robert Wilhelm, and Werner Lemberg. */ nuclear@0: /* */ nuclear@0: /* This file is part of the FreeType project, and may only be used, */ nuclear@0: /* modified, and distributed under the terms of the FreeType project */ nuclear@0: /* license, LICENSE.TXT. By continuing to use, modify, or distribute */ nuclear@0: /* this file you indicate that you have read the license and */ nuclear@0: /* understand and accept it fully. */ nuclear@0: /* */ nuclear@0: /***************************************************************************/ nuclear@0: nuclear@0: nuclear@0: /*******************************************************************/ nuclear@0: /*******************************************************************/ nuclear@0: /***** *****/ nuclear@0: /***** LIST OF ERROR CODES/MESSAGES *****/ nuclear@0: /***** *****/ nuclear@0: /*******************************************************************/ nuclear@0: /*******************************************************************/ nuclear@0: nuclear@0: nuclear@0: /* You need to define both FT_ERRORDEF_ and FT_NOERRORDEF_ before */ nuclear@0: /* including this file. */ nuclear@0: nuclear@0: nuclear@0: /* generic errors */ nuclear@0: nuclear@0: FT_NOERRORDEF_( Ok, 0x00, \ nuclear@0: "no error" ) nuclear@0: nuclear@0: FT_ERRORDEF_( Cannot_Open_Resource, 0x01, \ nuclear@0: "cannot open resource" ) nuclear@0: FT_ERRORDEF_( Unknown_File_Format, 0x02, \ nuclear@0: "unknown file format" ) nuclear@0: FT_ERRORDEF_( Invalid_File_Format, 0x03, \ nuclear@0: "broken file" ) nuclear@0: FT_ERRORDEF_( Invalid_Version, 0x04, \ nuclear@0: "invalid FreeType version" ) nuclear@0: FT_ERRORDEF_( Lower_Module_Version, 0x05, \ nuclear@0: "module version is too low" ) nuclear@0: FT_ERRORDEF_( Invalid_Argument, 0x06, \ nuclear@0: "invalid argument" ) nuclear@0: FT_ERRORDEF_( Unimplemented_Feature, 0x07, \ nuclear@0: "unimplemented feature" ) nuclear@0: FT_ERRORDEF_( Invalid_Table, 0x08, \ nuclear@0: "broken table" ) nuclear@0: FT_ERRORDEF_( Invalid_Offset, 0x09, \ nuclear@0: "broken offset within table" ) nuclear@0: FT_ERRORDEF_( Array_Too_Large, 0x0A, \ nuclear@0: "array allocation size too large" ) nuclear@0: nuclear@0: /* glyph/character errors */ nuclear@0: nuclear@0: FT_ERRORDEF_( Invalid_Glyph_Index, 0x10, \ nuclear@0: "invalid glyph index" ) nuclear@0: FT_ERRORDEF_( Invalid_Character_Code, 0x11, \ nuclear@0: "invalid character code" ) nuclear@0: FT_ERRORDEF_( Invalid_Glyph_Format, 0x12, \ nuclear@0: "unsupported glyph image format" ) nuclear@0: FT_ERRORDEF_( Cannot_Render_Glyph, 0x13, \ nuclear@0: "cannot render this glyph format" ) nuclear@0: FT_ERRORDEF_( Invalid_Outline, 0x14, \ nuclear@0: "invalid outline" ) nuclear@0: FT_ERRORDEF_( Invalid_Composite, 0x15, \ nuclear@0: "invalid composite glyph" ) nuclear@0: FT_ERRORDEF_( Too_Many_Hints, 0x16, \ nuclear@0: "too many hints" ) nuclear@0: FT_ERRORDEF_( Invalid_Pixel_Size, 0x17, \ nuclear@0: "invalid pixel size" ) nuclear@0: nuclear@0: /* handle errors */ nuclear@0: nuclear@0: FT_ERRORDEF_( Invalid_Handle, 0x20, \ nuclear@0: "invalid object handle" ) nuclear@0: FT_ERRORDEF_( Invalid_Library_Handle, 0x21, \ nuclear@0: "invalid library handle" ) nuclear@0: FT_ERRORDEF_( Invalid_Driver_Handle, 0x22, \ nuclear@0: "invalid module handle" ) nuclear@0: FT_ERRORDEF_( Invalid_Face_Handle, 0x23, \ nuclear@0: "invalid face handle" ) nuclear@0: FT_ERRORDEF_( Invalid_Size_Handle, 0x24, \ nuclear@0: "invalid size handle" ) nuclear@0: FT_ERRORDEF_( Invalid_Slot_Handle, 0x25, \ nuclear@0: "invalid glyph slot handle" ) nuclear@0: FT_ERRORDEF_( Invalid_CharMap_Handle, 0x26, \ nuclear@0: "invalid charmap handle" ) nuclear@0: FT_ERRORDEF_( Invalid_Cache_Handle, 0x27, \ nuclear@0: "invalid cache manager handle" ) nuclear@0: FT_ERRORDEF_( Invalid_Stream_Handle, 0x28, \ nuclear@0: "invalid stream handle" ) nuclear@0: nuclear@0: /* driver errors */ nuclear@0: nuclear@0: FT_ERRORDEF_( Too_Many_Drivers, 0x30, \ nuclear@0: "too many modules" ) nuclear@0: FT_ERRORDEF_( Too_Many_Extensions, 0x31, \ nuclear@0: "too many extensions" ) nuclear@0: nuclear@0: /* memory errors */ nuclear@0: nuclear@0: FT_ERRORDEF_( Out_Of_Memory, 0x40, \ nuclear@0: "out of memory" ) nuclear@0: FT_ERRORDEF_( Unlisted_Object, 0x41, \ nuclear@0: "unlisted object" ) nuclear@0: nuclear@0: /* stream errors */ nuclear@0: nuclear@0: FT_ERRORDEF_( Cannot_Open_Stream, 0x51, \ nuclear@0: "cannot open stream" ) nuclear@0: FT_ERRORDEF_( Invalid_Stream_Seek, 0x52, \ nuclear@0: "invalid stream seek" ) nuclear@0: FT_ERRORDEF_( Invalid_Stream_Skip, 0x53, \ nuclear@0: "invalid stream skip" ) nuclear@0: FT_ERRORDEF_( Invalid_Stream_Read, 0x54, \ nuclear@0: "invalid stream read" ) nuclear@0: FT_ERRORDEF_( Invalid_Stream_Operation, 0x55, \ nuclear@0: "invalid stream operation" ) nuclear@0: FT_ERRORDEF_( Invalid_Frame_Operation, 0x56, \ nuclear@0: "invalid frame operation" ) nuclear@0: FT_ERRORDEF_( Nested_Frame_Access, 0x57, \ nuclear@0: "nested frame access" ) nuclear@0: FT_ERRORDEF_( Invalid_Frame_Read, 0x58, \ nuclear@0: "invalid frame read" ) nuclear@0: nuclear@0: /* raster errors */ nuclear@0: nuclear@0: FT_ERRORDEF_( Raster_Uninitialized, 0x60, \ nuclear@0: "raster uninitialized" ) nuclear@0: FT_ERRORDEF_( Raster_Corrupted, 0x61, \ nuclear@0: "raster corrupted" ) nuclear@0: FT_ERRORDEF_( Raster_Overflow, 0x62, \ nuclear@0: "raster overflow" ) nuclear@0: FT_ERRORDEF_( Raster_Negative_Height, 0x63, \ nuclear@0: "negative height while rastering" ) nuclear@0: nuclear@0: /* cache errors */ nuclear@0: nuclear@0: FT_ERRORDEF_( Too_Many_Caches, 0x70, \ nuclear@0: "too many registered caches" ) nuclear@0: nuclear@0: /* TrueType and SFNT errors */ nuclear@0: nuclear@0: FT_ERRORDEF_( Invalid_Opcode, 0x80, \ nuclear@0: "invalid opcode" ) nuclear@0: FT_ERRORDEF_( Too_Few_Arguments, 0x81, \ nuclear@0: "too few arguments" ) nuclear@0: FT_ERRORDEF_( Stack_Overflow, 0x82, \ nuclear@0: "stack overflow" ) nuclear@0: FT_ERRORDEF_( Code_Overflow, 0x83, \ nuclear@0: "code overflow" ) nuclear@0: FT_ERRORDEF_( Bad_Argument, 0x84, \ nuclear@0: "bad argument" ) nuclear@0: FT_ERRORDEF_( Divide_By_Zero, 0x85, \ nuclear@0: "division by zero" ) nuclear@0: FT_ERRORDEF_( Invalid_Reference, 0x86, \ nuclear@0: "invalid reference" ) nuclear@0: FT_ERRORDEF_( Debug_OpCode, 0x87, \ nuclear@0: "found debug opcode" ) nuclear@0: FT_ERRORDEF_( ENDF_In_Exec_Stream, 0x88, \ nuclear@0: "found ENDF opcode in execution stream" ) nuclear@0: FT_ERRORDEF_( Nested_DEFS, 0x89, \ nuclear@0: "nested DEFS" ) nuclear@0: FT_ERRORDEF_( Invalid_CodeRange, 0x8A, \ nuclear@0: "invalid code range" ) nuclear@0: FT_ERRORDEF_( Execution_Too_Long, 0x8B, \ nuclear@0: "execution context too long" ) nuclear@0: FT_ERRORDEF_( Too_Many_Function_Defs, 0x8C, \ nuclear@0: "too many function definitions" ) nuclear@0: FT_ERRORDEF_( Too_Many_Instruction_Defs, 0x8D, \ nuclear@0: "too many instruction definitions" ) nuclear@0: FT_ERRORDEF_( Table_Missing, 0x8E, \ nuclear@0: "SFNT font table missing" ) nuclear@0: FT_ERRORDEF_( Horiz_Header_Missing, 0x8F, \ nuclear@0: "horizontal header (hhea) table missing" ) nuclear@0: FT_ERRORDEF_( Locations_Missing, 0x90, \ nuclear@0: "locations (loca) table missing" ) nuclear@0: FT_ERRORDEF_( Name_Table_Missing, 0x91, \ nuclear@0: "name table missing" ) nuclear@0: FT_ERRORDEF_( CMap_Table_Missing, 0x92, \ nuclear@0: "character map (cmap) table missing" ) nuclear@0: FT_ERRORDEF_( Hmtx_Table_Missing, 0x93, \ nuclear@0: "horizontal metrics (hmtx) table missing" ) nuclear@0: FT_ERRORDEF_( Post_Table_Missing, 0x94, \ nuclear@0: "PostScript (post) table missing" ) nuclear@0: FT_ERRORDEF_( Invalid_Horiz_Metrics, 0x95, \ nuclear@0: "invalid horizontal metrics" ) nuclear@0: FT_ERRORDEF_( Invalid_CharMap_Format, 0x96, \ nuclear@0: "invalid character map (cmap) format" ) nuclear@0: FT_ERRORDEF_( Invalid_PPem, 0x97, \ nuclear@0: "invalid ppem value" ) nuclear@0: FT_ERRORDEF_( Invalid_Vert_Metrics, 0x98, \ nuclear@0: "invalid vertical metrics" ) nuclear@0: FT_ERRORDEF_( Could_Not_Find_Context, 0x99, \ nuclear@0: "could not find context" ) nuclear@0: FT_ERRORDEF_( Invalid_Post_Table_Format, 0x9A, \ nuclear@0: "invalid PostScript (post) table format" ) nuclear@0: FT_ERRORDEF_( Invalid_Post_Table, 0x9B, \ nuclear@0: "invalid PostScript (post) table" ) nuclear@0: nuclear@0: /* CFF, CID, and Type 1 errors */ nuclear@0: nuclear@0: FT_ERRORDEF_( Syntax_Error, 0xA0, \ nuclear@0: "opcode syntax error" ) nuclear@0: FT_ERRORDEF_( Stack_Underflow, 0xA1, \ nuclear@0: "argument stack underflow" ) nuclear@0: FT_ERRORDEF_( Ignore, 0xA2, \ nuclear@0: "ignore" ) nuclear@0: FT_ERRORDEF_( No_Unicode_Glyph_Name, 0xA3, \ nuclear@0: "no Unicode glyph name found" ) nuclear@0: nuclear@0: nuclear@0: /* BDF errors */ nuclear@0: nuclear@0: FT_ERRORDEF_( Missing_Startfont_Field, 0xB0, \ nuclear@0: "`STARTFONT' field missing" ) nuclear@0: FT_ERRORDEF_( Missing_Font_Field, 0xB1, \ nuclear@0: "`FONT' field missing" ) nuclear@0: FT_ERRORDEF_( Missing_Size_Field, 0xB2, \ nuclear@0: "`SIZE' field missing" ) nuclear@0: FT_ERRORDEF_( Missing_Fontboundingbox_Field, 0xB3, \ nuclear@0: "`FONTBOUNDINGBOX' field missing" ) nuclear@0: FT_ERRORDEF_( Missing_Chars_Field, 0xB4, \ nuclear@0: "`CHARS' field missing" ) nuclear@0: FT_ERRORDEF_( Missing_Startchar_Field, 0xB5, \ nuclear@0: "`STARTCHAR' field missing" ) nuclear@0: FT_ERRORDEF_( Missing_Encoding_Field, 0xB6, \ nuclear@0: "`ENCODING' field missing" ) nuclear@0: FT_ERRORDEF_( Missing_Bbx_Field, 0xB7, \ nuclear@0: "`BBX' field missing" ) nuclear@0: FT_ERRORDEF_( Bbx_Too_Big, 0xB8, \ nuclear@0: "`BBX' too big" ) nuclear@0: FT_ERRORDEF_( Corrupted_Font_Header, 0xB9, \ nuclear@0: "Font header corrupted or missing fields" ) nuclear@0: FT_ERRORDEF_( Corrupted_Font_Glyphs, 0xBA, \ nuclear@0: "Font glyphs corrupted or missing fields" ) nuclear@0: nuclear@0: nuclear@0: /* END */