1 /***************************************************************************/
5 /* TrueType error ID definitions (specification only). */
7 /* Copyright 1996-2000 by */
8 /* David Turner, Robert Wilhelm, and Werner Lemberg. */
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. */
16 /***************************************************************************/
23 /*************************************************************************/
25 /* Error codes declaration */
27 /* The error codes are grouped in `classes' used to indicate the `level' */
28 /* at which the error happened. The class is given by an error code's */
31 /*************************************************************************/
34 /* Success is always 0. */
36 #define TT_Err_Ok FT_Err_Ok
38 /* High level API errors. */
40 #define TT_Err_Invalid_File_Format FT_Err_Invalid_File_Format
41 #define TT_Err_Invalid_Argument FT_Err_Invalid_Argument
42 #define TT_Err_Invalid_Driver_Handle FT_Err_Invalid_Driver_Handle
43 #define TT_Err_Invalid_Face_Handle FT_Err_Invalid_Face_Handle
44 #define TT_Err_Invalid_Instance_Handle FT_Err_Invalid_Size_Handle
45 #define TT_Err_Invalid_Glyph_Handle FT_Err_Invalid_Slot_Handle
46 #define TT_Err_Invalid_CharMap_Handle FT_Err_Invalid_CharMap_Handle
47 #define TT_Err_Invalid_Glyph_Index FT_Err_Invalid_Glyph_Index
49 #define TT_Err_Unimplemented_Feature FT_Err_Unimplemented_Feature
51 #define TT_Err_Invalid_Engine FT_Err_Invalid_Driver_Handle
53 /* Internal errors. */
55 #define TT_Err_Out_Of_Memory FT_Err_Out_Of_Memory
56 #define TT_Err_Unlisted_Object FT_Err_Unlisted_Object
58 /* General glyph outline errors. */
60 #define TT_Err_Too_Many_Ins FT_Err_Too_Many_Hints
61 #define TT_Err_Invalid_Composite FT_Err_Invalid_Composite
63 /* Bytecode interpreter error codes. */
65 /* These error codes are produced by the TrueType */
66 /* bytecode interpreter. They usually indicate a */
67 /* broken font file, a broken glyph within a font */
68 /* file, or a bug in the interpreter! */
70 #define TT_Err_Invalid_Opcode 0x400
71 #define TT_Err_Too_Few_Arguments 0x401
72 #define TT_Err_Stack_Overflow 0x402
73 #define TT_Err_Code_Overflow 0x403
74 #define TT_Err_Bad_Argument 0x404
75 #define TT_Err_Divide_By_Zero 0x405
76 #define TT_Err_Storage_Overflow 0x406
77 #define TT_Err_Cvt_Overflow 0x407
78 #define TT_Err_Invalid_Reference 0x408
79 #define TT_Err_Invalid_Distance 0x409
80 #define TT_Err_Interpolate_Twilight 0x40A
81 #define TT_Err_Debug_OpCode 0x40B
82 #define TT_Err_ENDF_In_Exec_Stream 0x40C
83 #define TT_Err_Out_Of_CodeRanges 0x40D
84 #define TT_Err_Nested_DEFS 0x40E
85 #define TT_Err_Invalid_CodeRange 0x40F
86 #define TT_Err_Invalid_Displacement 0x410
87 #define TT_Err_Execution_Too_Long 0x411
88 #define TT_Err_Too_Many_Function_Defs 0x412
89 #define TT_Err_Too_Many_Instruction_Defs 0x413
91 /* Other TrueType specific error codes. */
93 #define TT_Err_Table_Missing 0x420
94 #define TT_Err_Too_Many_Extensions 0x421
95 #define TT_Err_Extensions_Unsupported 0x422
96 #define TT_Err_Invalid_Extension_Id 0x423
98 #define TT_Err_No_Vertical_Data 0x424
100 #define TT_Err_Max_Profile_Missing 0x430
101 #define TT_Err_Header_Table_Missing 0x431
102 #define TT_Err_Horiz_Header_Missing 0x432
103 #define TT_Err_Locations_Missing 0x433
104 #define TT_Err_Name_Table_Missing 0x434
105 #define TT_Err_CMap_Table_Missing 0x435
106 #define TT_Err_Hmtx_Table_Missing 0x436
107 #define TT_Err_OS2_Table_Missing 0x437
108 #define TT_Err_Post_Table_Missing 0x438
110 #define TT_Err_Invalid_Horiz_Metrics 0x440
111 #define TT_Err_Invalid_CharMap_Format 0x441
112 #define TT_Err_Invalid_PPem 0x442
113 #define TT_Err_Invalid_Vert_Metrics 0x443
115 #define TT_Err_Could_Not_Find_Context 0x450
118 #endif /* TTERRORS_H */