fterrdef.h
上传用户:yisoukefu
上传日期:2020-08-09
资源大小:39506k
文件大小:12k
源码类别:

其他游戏

开发平台:

Visual C++

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