fterrdef.h 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229
  1. /***************************************************************************/
  2. /* */
  3. /* fterrdef.h */
  4. /* */
  5. /* FreeType error codes (specification). */
  6. /* */
  7. /* Copyright 2002 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. /* glyph/character errors */
  48. FT_ERRORDEF_( Invalid_Glyph_Index, 0x10, \
  49. "invalid glyph index" )
  50. FT_ERRORDEF_( Invalid_Character_Code, 0x11, \
  51. "invalid character code" )
  52. FT_ERRORDEF_( Invalid_Glyph_Format, 0x12, \
  53. "unsupported glyph image format" )
  54. FT_ERRORDEF_( Cannot_Render_Glyph, 0x13, \
  55. "cannot render this glyph format" )
  56. FT_ERRORDEF_( Invalid_Outline, 0x14, \
  57. "invalid outline" )
  58. FT_ERRORDEF_( Invalid_Composite, 0x15, \
  59. "invalid composite glyph" )
  60. FT_ERRORDEF_( Too_Many_Hints, 0x16, \
  61. "too many hints" )
  62. FT_ERRORDEF_( Invalid_Pixel_Size, 0x17, \
  63. "invalid pixel size" )
  64. /* handle errors */
  65. FT_ERRORDEF_( Invalid_Handle, 0x20, \
  66. "invalid object handle" )
  67. FT_ERRORDEF_( Invalid_Library_Handle, 0x21, \
  68. "invalid library handle" )
  69. FT_ERRORDEF_( Invalid_Driver_Handle, 0x22, \
  70. "invalid module handle" )
  71. FT_ERRORDEF_( Invalid_Face_Handle, 0x23, \
  72. "invalid face handle" )
  73. FT_ERRORDEF_( Invalid_Size_Handle, 0x24, \
  74. "invalid size handle" )
  75. FT_ERRORDEF_( Invalid_Slot_Handle, 0x25, \
  76. "invalid glyph slot handle" )
  77. FT_ERRORDEF_( Invalid_CharMap_Handle, 0x26, \
  78. "invalid charmap handle" )
  79. FT_ERRORDEF_( Invalid_Cache_Handle, 0x27, \
  80. "invalid cache manager handle" )
  81. FT_ERRORDEF_( Invalid_Stream_Handle, 0x28, \
  82. "invalid stream handle" )
  83. /* driver errors */
  84. FT_ERRORDEF_( Too_Many_Drivers, 0x30, \
  85. "too many modules" )
  86. FT_ERRORDEF_( Too_Many_Extensions, 0x31, \
  87. "too many extensions" )
  88. /* memory errors */
  89. FT_ERRORDEF_( Out_Of_Memory, 0x40, \
  90. "out of memory" )
  91. FT_ERRORDEF_( Unlisted_Object, 0x41, \
  92. "unlisted object" )
  93. /* stream errors */
  94. FT_ERRORDEF_( Cannot_Open_Stream, 0x51, \
  95. "cannot open stream" )
  96. FT_ERRORDEF_( Invalid_Stream_Seek, 0x52, \
  97. "invalid stream seek" )
  98. FT_ERRORDEF_( Invalid_Stream_Skip, 0x53, \
  99. "invalid stream skip" )
  100. FT_ERRORDEF_( Invalid_Stream_Read, 0x54, \
  101. "invalid stream read" )
  102. FT_ERRORDEF_( Invalid_Stream_Operation, 0x55, \
  103. "invalid stream operation" )
  104. FT_ERRORDEF_( Invalid_Frame_Operation, 0x56, \
  105. "invalid frame operation" )
  106. FT_ERRORDEF_( Nested_Frame_Access, 0x57, \
  107. "nested frame access" )
  108. FT_ERRORDEF_( Invalid_Frame_Read, 0x58, \
  109. "invalid frame read" )
  110. /* raster errors */
  111. FT_ERRORDEF_( Raster_Uninitialized, 0x60, \
  112. "raster uninitialized" )
  113. FT_ERRORDEF_( Raster_Corrupted, 0x61, \
  114. "raster corrupted" )
  115. FT_ERRORDEF_( Raster_Overflow, 0x62, \
  116. "raster overflow" )
  117. FT_ERRORDEF_( Raster_Negative_Height, 0x63, \
  118. "negative height while rastering" )
  119. /* cache errors */
  120. FT_ERRORDEF_( Too_Many_Caches, 0x70, \
  121. "too many registered caches" )
  122. /* TrueType and SFNT errors */
  123. FT_ERRORDEF_( Invalid_Opcode, 0x80, \
  124. "invalid opcode" )
  125. FT_ERRORDEF_( Too_Few_Arguments, 0x81, \
  126. "too few arguments" )
  127. FT_ERRORDEF_( Stack_Overflow, 0x82, \
  128. "stack overflow" )
  129. FT_ERRORDEF_( Code_Overflow, 0x83, \
  130. "code overflow" )
  131. FT_ERRORDEF_( Bad_Argument, 0x84, \
  132. "bad argument" )
  133. FT_ERRORDEF_( Divide_By_Zero, 0x85, \
  134. "division by zero" )
  135. FT_ERRORDEF_( Invalid_Reference, 0x86, \
  136. "invalid reference" )
  137. FT_ERRORDEF_( Debug_OpCode, 0x87, \
  138. "found debug opcode" )
  139. FT_ERRORDEF_( ENDF_In_Exec_Stream, 0x88, \
  140. "found ENDF opcode in execution stream" )
  141. FT_ERRORDEF_( Nested_DEFS, 0x89, \
  142. "nested DEFS" )
  143. FT_ERRORDEF_( Invalid_CodeRange, 0x8A, \
  144. "invalid code range" )
  145. FT_ERRORDEF_( Execution_Too_Long, 0x8B, \
  146. "execution context too long" )
  147. FT_ERRORDEF_( Too_Many_Function_Defs, 0x8C, \
  148. "too many function definitions" )
  149. FT_ERRORDEF_( Too_Many_Instruction_Defs, 0x8D, \
  150. "too many instruction definitions" )
  151. FT_ERRORDEF_( Table_Missing, 0x8E, \
  152. "SFNT font table missing" )
  153. FT_ERRORDEF_( Horiz_Header_Missing, 0x8F, \
  154. "horizontal header (hhea) table missing" )
  155. FT_ERRORDEF_( Locations_Missing, 0x90, \
  156. "locations (loca) table missing" )
  157. FT_ERRORDEF_( Name_Table_Missing, 0x91, \
  158. "name table missing" )
  159. FT_ERRORDEF_( CMap_Table_Missing, 0x92, \
  160. "character map (cmap) table missing" )
  161. FT_ERRORDEF_( Hmtx_Table_Missing, 0x93, \
  162. "horizontal metrics (hmtx) table missing" )
  163. FT_ERRORDEF_( Post_Table_Missing, 0x94, \
  164. "PostScript (post) table missing" )
  165. FT_ERRORDEF_( Invalid_Horiz_Metrics, 0x95, \
  166. "invalid horizontal metrics" )
  167. FT_ERRORDEF_( Invalid_CharMap_Format, 0x96, \
  168. "invalid character map (cmap) format" )
  169. FT_ERRORDEF_( Invalid_PPem, 0x97, \
  170. "invalid ppem value" )
  171. FT_ERRORDEF_( Invalid_Vert_Metrics, 0x98, \
  172. "invalid vertical metrics" )
  173. FT_ERRORDEF_( Could_Not_Find_Context, 0x99, \
  174. "could not find context" )
  175. FT_ERRORDEF_( Invalid_Post_Table_Format, 0x9A, \
  176. "invalid PostScript (post) table format" )
  177. FT_ERRORDEF_( Invalid_Post_Table, 0x9B, \
  178. "invalid PostScript (post) table" )
  179. /* CFF, CID, and Type 1 errors */
  180. FT_ERRORDEF_( Syntax_Error, 0xA0, \
  181. "opcode syntax error" )
  182. FT_ERRORDEF_( Stack_Underflow, 0xA1, \
  183. "argument stack underflow" )
  184. /* BDF errors */
  185. FT_ERRORDEF_( Missing_Startfont_Field, 0xB0, \
  186. "`STARTFONT' field missing" )
  187. FT_ERRORDEF_( Missing_Font_Field, 0xB1, \
  188. "`FONT' field missing" )
  189. FT_ERRORDEF_( Missing_Size_Field, 0xB2, \
  190. "`SIZE' field missing" )
  191. FT_ERRORDEF_( Missing_Chars_Field, 0xB3, \
  192. "`CHARS' field missing" )
  193. FT_ERRORDEF_( Missing_Startchar_Field, 0xB4, \
  194. "`STARTCHAR' field missing" )
  195. FT_ERRORDEF_( Missing_Encoding_Field, 0xB5, \
  196. "`ENCODING' field missing" )
  197. FT_ERRORDEF_( Missing_Bbx_Field, 0xB6, \
  198. "`BBX' field missing" )
  199. /* END */