PageRenderTime 47ms CodeModel.GetById 21ms RepoModel.GetById 0ms app.codeStats 0ms

/Source/ThirdParty/FreeType/include/freetype/fterrdef.h

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