fterrdef.h

Go to the documentation of this file.
00001 /***************************************************************************/
00002 /*                                                                         */
00003 /*  fterrdef.h                                                             */
00004 /*                                                                         */
00005 /*    FreeType error codes (specification).                                */
00006 /*                                                                         */
00007 /*  Copyright 2002, 2004, 2006, 2007 by                                    */
00008 /*  David Turner, Robert Wilhelm, and Werner Lemberg.                      */
00009 /*                                                                         */
00010 /*  This file is part of the FreeType project, and may only be used,       */
00011 /*  modified, and distributed under the terms of the FreeType project      */
00012 /*  license, LICENSE.TXT.  By continuing to use, modify, or distribute     */
00013 /*  this file you indicate that you have read the license and              */
00014 /*  understand and accept it fully.                                        */
00015 /*                                                                         */
00016 /***************************************************************************/
00017 
00018 
00019   /*******************************************************************/
00020   /*******************************************************************/
00021   /*****                                                         *****/
00022   /*****                LIST OF ERROR CODES/MESSAGES             *****/
00023   /*****                                                         *****/
00024   /*******************************************************************/
00025   /*******************************************************************/
00026 
00027 
00028   /* You need to define both FT_ERRORDEF_ and FT_NOERRORDEF_ before */
00029   /* including this file.                                           */
00030 
00031 
00032   /* generic errors */
00033 
00034   FT_NOERRORDEF_( Ok,                                        0x00, \
00035                   "no error" )
00036 
00037   FT_ERRORDEF_( Cannot_Open_Resource,                        0x01, \
00038                 "cannot open resource" )
00039   FT_ERRORDEF_( Unknown_File_Format,                         0x02, \
00040                 "unknown file format" )
00041   FT_ERRORDEF_( Invalid_File_Format,                         0x03, \
00042                 "broken file" )
00043   FT_ERRORDEF_( Invalid_Version,                             0x04, \
00044                 "invalid FreeType version" )
00045   FT_ERRORDEF_( Lower_Module_Version,                        0x05, \
00046                 "module version is too low" )
00047   FT_ERRORDEF_( Invalid_Argument,                            0x06, \
00048                 "invalid argument" )
00049   FT_ERRORDEF_( Unimplemented_Feature,                       0x07, \
00050                 "unimplemented feature" )
00051   FT_ERRORDEF_( Invalid_Table,                               0x08, \
00052                 "broken table" )
00053   FT_ERRORDEF_( Invalid_Offset,                              0x09, \
00054                 "broken offset within table" )
00055   FT_ERRORDEF_( Array_Too_Large,                             0x0A, \
00056                 "array allocation size too large" )
00057 
00058   /* glyph/character errors */
00059 
00060   FT_ERRORDEF_( Invalid_Glyph_Index,                         0x10, \
00061                 "invalid glyph index" )
00062   FT_ERRORDEF_( Invalid_Character_Code,                      0x11, \
00063                 "invalid character code" )
00064   FT_ERRORDEF_( Invalid_Glyph_Format,                        0x12, \
00065                 "unsupported glyph image format" )
00066   FT_ERRORDEF_( Cannot_Render_Glyph,                         0x13, \
00067                 "cannot render this glyph format" )
00068   FT_ERRORDEF_( Invalid_Outline,                             0x14, \
00069                 "invalid outline" )
00070   FT_ERRORDEF_( Invalid_Composite,                           0x15, \
00071                 "invalid composite glyph" )
00072   FT_ERRORDEF_( Too_Many_Hints,                              0x16, \
00073                 "too many hints" )
00074   FT_ERRORDEF_( Invalid_Pixel_Size,                          0x17, \
00075                 "invalid pixel size" )
00076 
00077   /* handle errors */
00078 
00079   FT_ERRORDEF_( Invalid_Handle,                              0x20, \
00080                 "invalid object handle" )
00081   FT_ERRORDEF_( Invalid_Library_Handle,                      0x21, \
00082                 "invalid library handle" )
00083   FT_ERRORDEF_( Invalid_Driver_Handle,                       0x22, \
00084                 "invalid module handle" )
00085   FT_ERRORDEF_( Invalid_Face_Handle,                         0x23, \
00086                 "invalid face handle" )
00087   FT_ERRORDEF_( Invalid_Size_Handle,                         0x24, \
00088                 "invalid size handle" )
00089   FT_ERRORDEF_( Invalid_Slot_Handle,                         0x25, \
00090                 "invalid glyph slot handle" )
00091   FT_ERRORDEF_( Invalid_CharMap_Handle,                      0x26, \
00092                 "invalid charmap handle" )
00093   FT_ERRORDEF_( Invalid_Cache_Handle,                        0x27, \
00094                 "invalid cache manager handle" )
00095   FT_ERRORDEF_( Invalid_Stream_Handle,                       0x28, \
00096                 "invalid stream handle" )
00097 
00098   /* driver errors */
00099 
00100   FT_ERRORDEF_( Too_Many_Drivers,                            0x30, \
00101                 "too many modules" )
00102   FT_ERRORDEF_( Too_Many_Extensions,                         0x31, \
00103                 "too many extensions" )
00104 
00105   /* memory errors */
00106 
00107   FT_ERRORDEF_( Out_Of_Memory,                               0x40, \
00108                 "out of memory" )
00109   FT_ERRORDEF_( Unlisted_Object,                             0x41, \
00110                 "unlisted object" )
00111 
00112   /* stream errors */
00113 
00114   FT_ERRORDEF_( Cannot_Open_Stream,                          0x51, \
00115                 "cannot open stream" )
00116   FT_ERRORDEF_( Invalid_Stream_Seek,                         0x52, \
00117                 "invalid stream seek" )
00118   FT_ERRORDEF_( Invalid_Stream_Skip,                         0x53, \
00119                 "invalid stream skip" )
00120   FT_ERRORDEF_( Invalid_Stream_Read,                         0x54, \
00121                 "invalid stream read" )
00122   FT_ERRORDEF_( Invalid_Stream_Operation,                    0x55, \
00123                 "invalid stream operation" )
00124   FT_ERRORDEF_( Invalid_Frame_Operation,                     0x56, \
00125                 "invalid frame operation" )
00126   FT_ERRORDEF_( Nested_Frame_Access,                         0x57, \
00127                 "nested frame access" )
00128   FT_ERRORDEF_( Invalid_Frame_Read,                          0x58, \
00129                 "invalid frame read" )
00130 
00131   /* raster errors */
00132 
00133   FT_ERRORDEF_( Raster_Uninitialized,                        0x60, \
00134                 "raster uninitialized" )
00135   FT_ERRORDEF_( Raster_Corrupted,                            0x61, \
00136                 "raster corrupted" )
00137   FT_ERRORDEF_( Raster_Overflow,                             0x62, \
00138                 "raster overflow" )
00139   FT_ERRORDEF_( Raster_Negative_Height,                      0x63, \
00140                 "negative height while rastering" )
00141 
00142   /* cache errors */
00143 
00144   FT_ERRORDEF_( Too_Many_Caches,                             0x70, \
00145                 "too many registered caches" )
00146 
00147   /* TrueType and SFNT errors */
00148 
00149   FT_ERRORDEF_( Invalid_Opcode,                              0x80, \
00150                 "invalid opcode" )
00151   FT_ERRORDEF_( Too_Few_Arguments,                           0x81, \
00152                 "too few arguments" )
00153   FT_ERRORDEF_( Stack_Overflow,                              0x82, \
00154                 "stack overflow" )
00155   FT_ERRORDEF_( Code_Overflow,                               0x83, \
00156                 "code overflow" )
00157   FT_ERRORDEF_( Bad_Argument,                                0x84, \
00158                 "bad argument" )
00159   FT_ERRORDEF_( Divide_By_Zero,                              0x85, \
00160                 "division by zero" )
00161   FT_ERRORDEF_( Invalid_Reference,                           0x86, \
00162                 "invalid reference" )
00163   FT_ERRORDEF_( Debug_OpCode,                                0x87, \
00164                 "found debug opcode" )
00165   FT_ERRORDEF_( ENDF_In_Exec_Stream,                         0x88, \
00166                 "found ENDF opcode in execution stream" )
00167   FT_ERRORDEF_( Nested_DEFS,                                 0x89, \
00168                 "nested DEFS" )
00169   FT_ERRORDEF_( Invalid_CodeRange,                           0x8A, \
00170                 "invalid code range" )
00171   FT_ERRORDEF_( Execution_Too_Long,                          0x8B, \
00172                 "execution context too long" )
00173   FT_ERRORDEF_( Too_Many_Function_Defs,                      0x8C, \
00174                 "too many function definitions" )
00175   FT_ERRORDEF_( Too_Many_Instruction_Defs,                   0x8D, \
00176                 "too many instruction definitions" )
00177   FT_ERRORDEF_( Table_Missing,                               0x8E, \
00178                 "SFNT font table missing" )
00179   FT_ERRORDEF_( Horiz_Header_Missing,                        0x8F, \
00180                 "horizontal header (hhea) table missing" )
00181   FT_ERRORDEF_( Locations_Missing,                           0x90, \
00182                 "locations (loca) table missing" )
00183   FT_ERRORDEF_( Name_Table_Missing,                          0x91, \
00184                 "name table missing" )
00185   FT_ERRORDEF_( CMap_Table_Missing,                          0x92, \
00186                 "character map (cmap) table missing" )
00187   FT_ERRORDEF_( Hmtx_Table_Missing,                          0x93, \
00188                 "horizontal metrics (hmtx) table missing" )
00189   FT_ERRORDEF_( Post_Table_Missing,                          0x94, \
00190                 "PostScript (post) table missing" )
00191   FT_ERRORDEF_( Invalid_Horiz_Metrics,                       0x95, \
00192                 "invalid horizontal metrics" )
00193   FT_ERRORDEF_( Invalid_CharMap_Format,                      0x96, \
00194                 "invalid character map (cmap) format" )
00195   FT_ERRORDEF_( Invalid_PPem,                                0x97, \
00196                 "invalid ppem value" )
00197   FT_ERRORDEF_( Invalid_Vert_Metrics,                        0x98, \
00198                 "invalid vertical metrics" )
00199   FT_ERRORDEF_( Could_Not_Find_Context,                      0x99, \
00200                 "could not find context" )
00201   FT_ERRORDEF_( Invalid_Post_Table_Format,                   0x9A, \
00202                 "invalid PostScript (post) table format" )
00203   FT_ERRORDEF_( Invalid_Post_Table,                          0x9B, \
00204                 "invalid PostScript (post) table" )
00205 
00206   /* CFF, CID, and Type 1 errors */
00207 
00208   FT_ERRORDEF_( Syntax_Error,                                0xA0, \
00209                 "opcode syntax error" )
00210   FT_ERRORDEF_( Stack_Underflow,                             0xA1, \
00211                 "argument stack underflow" )
00212   FT_ERRORDEF_( Ignore,                                      0xA2, \
00213                 "ignore" )
00214 
00215   /* BDF errors */
00216 
00217   FT_ERRORDEF_( Missing_Startfont_Field,                     0xB0, \
00218                 "`STARTFONT' field missing" )
00219   FT_ERRORDEF_( Missing_Font_Field,                          0xB1, \
00220                 "`FONT' field missing" )
00221   FT_ERRORDEF_( Missing_Size_Field,                          0xB2, \
00222                 "`SIZE' field missing" )
00223   FT_ERRORDEF_( Missing_Chars_Field,                         0xB3, \
00224                 "`CHARS' field missing" )
00225   FT_ERRORDEF_( Missing_Startchar_Field,                     0xB4, \
00226                 "`STARTCHAR' field missing" )
00227   FT_ERRORDEF_( Missing_Encoding_Field,                      0xB5, \
00228                 "`ENCODING' field missing" )
00229   FT_ERRORDEF_( Missing_Bbx_Field,                           0xB6, \
00230                 "`BBX' field missing" )
00231   FT_ERRORDEF_( Bbx_Too_Big,                                 0xB7, \
00232                 "`BBX' too big" )
00233   FT_ERRORDEF_( Corrupted_Font_Header,                       0xB8, \
00234                 "Font header corrupted or missing fields" )
00235   FT_ERRORDEF_( Corrupted_Font_Glyphs,                       0xB9, \
00236                 "Font glyphs corrupted or missing fields" )
00237 
00238 
00239 /* END */

Generated on Tue Jul 5 14:13:36 2011 for ROOT_528-00b_version by  doxygen 1.5.1