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