vrshoot

diff libs/ft2static/freetype/fterrdef.h @ 0:b2f14e535253

initial commit
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 01 Feb 2014 19:58:19 +0200
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/libs/ft2static/freetype/fterrdef.h	Sat Feb 01 19:58:19 2014 +0200
     1.3 @@ -0,0 +1,244 @@
     1.4 +/***************************************************************************/
     1.5 +/*                                                                         */
     1.6 +/*  fterrdef.h                                                             */
     1.7 +/*                                                                         */
     1.8 +/*    FreeType error codes (specification).                                */
     1.9 +/*                                                                         */
    1.10 +/*  Copyright 2002, 2004, 2006, 2007, 2010 by                              */
    1.11 +/*  David Turner, Robert Wilhelm, and Werner Lemberg.                      */
    1.12 +/*                                                                         */
    1.13 +/*  This file is part of the FreeType project, and may only be used,       */
    1.14 +/*  modified, and distributed under the terms of the FreeType project      */
    1.15 +/*  license, LICENSE.TXT.  By continuing to use, modify, or distribute     */
    1.16 +/*  this file you indicate that you have read the license and              */
    1.17 +/*  understand and accept it fully.                                        */
    1.18 +/*                                                                         */
    1.19 +/***************************************************************************/
    1.20 +
    1.21 +
    1.22 +  /*******************************************************************/
    1.23 +  /*******************************************************************/
    1.24 +  /*****                                                         *****/
    1.25 +  /*****                LIST OF ERROR CODES/MESSAGES             *****/
    1.26 +  /*****                                                         *****/
    1.27 +  /*******************************************************************/
    1.28 +  /*******************************************************************/
    1.29 +
    1.30 +
    1.31 +  /* You need to define both FT_ERRORDEF_ and FT_NOERRORDEF_ before */
    1.32 +  /* including this file.                                           */
    1.33 +
    1.34 +
    1.35 +  /* generic errors */
    1.36 +
    1.37 +  FT_NOERRORDEF_( Ok,                                        0x00, \
    1.38 +                  "no error" )
    1.39 +
    1.40 +  FT_ERRORDEF_( Cannot_Open_Resource,                        0x01, \
    1.41 +                "cannot open resource" )
    1.42 +  FT_ERRORDEF_( Unknown_File_Format,                         0x02, \
    1.43 +                "unknown file format" )
    1.44 +  FT_ERRORDEF_( Invalid_File_Format,                         0x03, \
    1.45 +                "broken file" )
    1.46 +  FT_ERRORDEF_( Invalid_Version,                             0x04, \
    1.47 +                "invalid FreeType version" )
    1.48 +  FT_ERRORDEF_( Lower_Module_Version,                        0x05, \
    1.49 +                "module version is too low" )
    1.50 +  FT_ERRORDEF_( Invalid_Argument,                            0x06, \
    1.51 +                "invalid argument" )
    1.52 +  FT_ERRORDEF_( Unimplemented_Feature,                       0x07, \
    1.53 +                "unimplemented feature" )
    1.54 +  FT_ERRORDEF_( Invalid_Table,                               0x08, \
    1.55 +                "broken table" )
    1.56 +  FT_ERRORDEF_( Invalid_Offset,                              0x09, \
    1.57 +                "broken offset within table" )
    1.58 +  FT_ERRORDEF_( Array_Too_Large,                             0x0A, \
    1.59 +                "array allocation size too large" )
    1.60 +
    1.61 +  /* glyph/character errors */
    1.62 +
    1.63 +  FT_ERRORDEF_( Invalid_Glyph_Index,                         0x10, \
    1.64 +                "invalid glyph index" )
    1.65 +  FT_ERRORDEF_( Invalid_Character_Code,                      0x11, \
    1.66 +                "invalid character code" )
    1.67 +  FT_ERRORDEF_( Invalid_Glyph_Format,                        0x12, \
    1.68 +                "unsupported glyph image format" )
    1.69 +  FT_ERRORDEF_( Cannot_Render_Glyph,                         0x13, \
    1.70 +                "cannot render this glyph format" )
    1.71 +  FT_ERRORDEF_( Invalid_Outline,                             0x14, \
    1.72 +                "invalid outline" )
    1.73 +  FT_ERRORDEF_( Invalid_Composite,                           0x15, \
    1.74 +                "invalid composite glyph" )
    1.75 +  FT_ERRORDEF_( Too_Many_Hints,                              0x16, \
    1.76 +                "too many hints" )
    1.77 +  FT_ERRORDEF_( Invalid_Pixel_Size,                          0x17, \
    1.78 +                "invalid pixel size" )
    1.79 +
    1.80 +  /* handle errors */
    1.81 +
    1.82 +  FT_ERRORDEF_( Invalid_Handle,                              0x20, \
    1.83 +                "invalid object handle" )
    1.84 +  FT_ERRORDEF_( Invalid_Library_Handle,                      0x21, \
    1.85 +                "invalid library handle" )
    1.86 +  FT_ERRORDEF_( Invalid_Driver_Handle,                       0x22, \
    1.87 +                "invalid module handle" )
    1.88 +  FT_ERRORDEF_( Invalid_Face_Handle,                         0x23, \
    1.89 +                "invalid face handle" )
    1.90 +  FT_ERRORDEF_( Invalid_Size_Handle,                         0x24, \
    1.91 +                "invalid size handle" )
    1.92 +  FT_ERRORDEF_( Invalid_Slot_Handle,                         0x25, \
    1.93 +                "invalid glyph slot handle" )
    1.94 +  FT_ERRORDEF_( Invalid_CharMap_Handle,                      0x26, \
    1.95 +                "invalid charmap handle" )
    1.96 +  FT_ERRORDEF_( Invalid_Cache_Handle,                        0x27, \
    1.97 +                "invalid cache manager handle" )
    1.98 +  FT_ERRORDEF_( Invalid_Stream_Handle,                       0x28, \
    1.99 +                "invalid stream handle" )
   1.100 +
   1.101 +  /* driver errors */
   1.102 +
   1.103 +  FT_ERRORDEF_( Too_Many_Drivers,                            0x30, \
   1.104 +                "too many modules" )
   1.105 +  FT_ERRORDEF_( Too_Many_Extensions,                         0x31, \
   1.106 +                "too many extensions" )
   1.107 +
   1.108 +  /* memory errors */
   1.109 +
   1.110 +  FT_ERRORDEF_( Out_Of_Memory,                               0x40, \
   1.111 +                "out of memory" )
   1.112 +  FT_ERRORDEF_( Unlisted_Object,                             0x41, \
   1.113 +                "unlisted object" )
   1.114 +
   1.115 +  /* stream errors */
   1.116 +
   1.117 +  FT_ERRORDEF_( Cannot_Open_Stream,                          0x51, \
   1.118 +                "cannot open stream" )
   1.119 +  FT_ERRORDEF_( Invalid_Stream_Seek,                         0x52, \
   1.120 +                "invalid stream seek" )
   1.121 +  FT_ERRORDEF_( Invalid_Stream_Skip,                         0x53, \
   1.122 +                "invalid stream skip" )
   1.123 +  FT_ERRORDEF_( Invalid_Stream_Read,                         0x54, \
   1.124 +                "invalid stream read" )
   1.125 +  FT_ERRORDEF_( Invalid_Stream_Operation,                    0x55, \
   1.126 +                "invalid stream operation" )
   1.127 +  FT_ERRORDEF_( Invalid_Frame_Operation,                     0x56, \
   1.128 +                "invalid frame operation" )
   1.129 +  FT_ERRORDEF_( Nested_Frame_Access,                         0x57, \
   1.130 +                "nested frame access" )
   1.131 +  FT_ERRORDEF_( Invalid_Frame_Read,                          0x58, \
   1.132 +                "invalid frame read" )
   1.133 +
   1.134 +  /* raster errors */
   1.135 +
   1.136 +  FT_ERRORDEF_( Raster_Uninitialized,                        0x60, \
   1.137 +                "raster uninitialized" )
   1.138 +  FT_ERRORDEF_( Raster_Corrupted,                            0x61, \
   1.139 +                "raster corrupted" )
   1.140 +  FT_ERRORDEF_( Raster_Overflow,                             0x62, \
   1.141 +                "raster overflow" )
   1.142 +  FT_ERRORDEF_( Raster_Negative_Height,                      0x63, \
   1.143 +                "negative height while rastering" )
   1.144 +
   1.145 +  /* cache errors */
   1.146 +
   1.147 +  FT_ERRORDEF_( Too_Many_Caches,                             0x70, \
   1.148 +                "too many registered caches" )
   1.149 +
   1.150 +  /* TrueType and SFNT errors */
   1.151 +
   1.152 +  FT_ERRORDEF_( Invalid_Opcode,                              0x80, \
   1.153 +                "invalid opcode" )
   1.154 +  FT_ERRORDEF_( Too_Few_Arguments,                           0x81, \
   1.155 +                "too few arguments" )
   1.156 +  FT_ERRORDEF_( Stack_Overflow,                              0x82, \
   1.157 +                "stack overflow" )
   1.158 +  FT_ERRORDEF_( Code_Overflow,                               0x83, \
   1.159 +                "code overflow" )
   1.160 +  FT_ERRORDEF_( Bad_Argument,                                0x84, \
   1.161 +                "bad argument" )
   1.162 +  FT_ERRORDEF_( Divide_By_Zero,                              0x85, \
   1.163 +                "division by zero" )
   1.164 +  FT_ERRORDEF_( Invalid_Reference,                           0x86, \
   1.165 +                "invalid reference" )
   1.166 +  FT_ERRORDEF_( Debug_OpCode,                                0x87, \
   1.167 +                "found debug opcode" )
   1.168 +  FT_ERRORDEF_( ENDF_In_Exec_Stream,                         0x88, \
   1.169 +                "found ENDF opcode in execution stream" )
   1.170 +  FT_ERRORDEF_( Nested_DEFS,                                 0x89, \
   1.171 +                "nested DEFS" )
   1.172 +  FT_ERRORDEF_( Invalid_CodeRange,                           0x8A, \
   1.173 +                "invalid code range" )
   1.174 +  FT_ERRORDEF_( Execution_Too_Long,                          0x8B, \
   1.175 +                "execution context too long" )
   1.176 +  FT_ERRORDEF_( Too_Many_Function_Defs,                      0x8C, \
   1.177 +                "too many function definitions" )
   1.178 +  FT_ERRORDEF_( Too_Many_Instruction_Defs,                   0x8D, \
   1.179 +                "too many instruction definitions" )
   1.180 +  FT_ERRORDEF_( Table_Missing,                               0x8E, \
   1.181 +                "SFNT font table missing" )
   1.182 +  FT_ERRORDEF_( Horiz_Header_Missing,                        0x8F, \
   1.183 +                "horizontal header (hhea) table missing" )
   1.184 +  FT_ERRORDEF_( Locations_Missing,                           0x90, \
   1.185 +                "locations (loca) table missing" )
   1.186 +  FT_ERRORDEF_( Name_Table_Missing,                          0x91, \
   1.187 +                "name table missing" )
   1.188 +  FT_ERRORDEF_( CMap_Table_Missing,                          0x92, \
   1.189 +                "character map (cmap) table missing" )
   1.190 +  FT_ERRORDEF_( Hmtx_Table_Missing,                          0x93, \
   1.191 +                "horizontal metrics (hmtx) table missing" )
   1.192 +  FT_ERRORDEF_( Post_Table_Missing,                          0x94, \
   1.193 +                "PostScript (post) table missing" )
   1.194 +  FT_ERRORDEF_( Invalid_Horiz_Metrics,                       0x95, \
   1.195 +                "invalid horizontal metrics" )
   1.196 +  FT_ERRORDEF_( Invalid_CharMap_Format,                      0x96, \
   1.197 +                "invalid character map (cmap) format" )
   1.198 +  FT_ERRORDEF_( Invalid_PPem,                                0x97, \
   1.199 +                "invalid ppem value" )
   1.200 +  FT_ERRORDEF_( Invalid_Vert_Metrics,                        0x98, \
   1.201 +                "invalid vertical metrics" )
   1.202 +  FT_ERRORDEF_( Could_Not_Find_Context,                      0x99, \
   1.203 +                "could not find context" )
   1.204 +  FT_ERRORDEF_( Invalid_Post_Table_Format,                   0x9A, \
   1.205 +                "invalid PostScript (post) table format" )
   1.206 +  FT_ERRORDEF_( Invalid_Post_Table,                          0x9B, \
   1.207 +                "invalid PostScript (post) table" )
   1.208 +
   1.209 +  /* CFF, CID, and Type 1 errors */
   1.210 +
   1.211 +  FT_ERRORDEF_( Syntax_Error,                                0xA0, \
   1.212 +                "opcode syntax error" )
   1.213 +  FT_ERRORDEF_( Stack_Underflow,                             0xA1, \
   1.214 +                "argument stack underflow" )
   1.215 +  FT_ERRORDEF_( Ignore,                                      0xA2, \
   1.216 +                "ignore" )
   1.217 +  FT_ERRORDEF_( No_Unicode_Glyph_Name,                       0xA3, \
   1.218 +                "no Unicode glyph name found" )
   1.219 +
   1.220 +
   1.221 +  /* BDF errors */
   1.222 +
   1.223 +  FT_ERRORDEF_( Missing_Startfont_Field,                     0xB0, \
   1.224 +                "`STARTFONT' field missing" )
   1.225 +  FT_ERRORDEF_( Missing_Font_Field,                          0xB1, \
   1.226 +                "`FONT' field missing" )
   1.227 +  FT_ERRORDEF_( Missing_Size_Field,                          0xB2, \
   1.228 +                "`SIZE' field missing" )
   1.229 +  FT_ERRORDEF_( Missing_Fontboundingbox_Field,               0xB3, \
   1.230 +                "`FONTBOUNDINGBOX' field missing" )
   1.231 +  FT_ERRORDEF_( Missing_Chars_Field,                         0xB4, \
   1.232 +                "`CHARS' field missing" )
   1.233 +  FT_ERRORDEF_( Missing_Startchar_Field,                     0xB5, \
   1.234 +                "`STARTCHAR' field missing" )
   1.235 +  FT_ERRORDEF_( Missing_Encoding_Field,                      0xB6, \
   1.236 +                "`ENCODING' field missing" )
   1.237 +  FT_ERRORDEF_( Missing_Bbx_Field,                           0xB7, \
   1.238 +                "`BBX' field missing" )
   1.239 +  FT_ERRORDEF_( Bbx_Too_Big,                                 0xB8, \
   1.240 +                "`BBX' too big" )
   1.241 +  FT_ERRORDEF_( Corrupted_Font_Header,                       0xB9, \
   1.242 +                "Font header corrupted or missing fields" )
   1.243 +  FT_ERRORDEF_( Corrupted_Font_Glyphs,                       0xBA, \
   1.244 +                "Font glyphs corrupted or missing fields" )
   1.245 +
   1.246 +
   1.247 +/* END */