:pserver:cvsanon@mok.lvcm.com:/CVS/ReactOS reactos
[reactos.git] / subsys / win32k / freetype / include / freetype / internal / t2errors.h
1 /***************************************************************************/
2 /*                                                                         */
3 /*  t2errors.h                                                             */
4 /*                                                                         */
5 /*    OpenType error ID definitions (specification only).                  */
6 /*                                                                         */
7 /*  Copyright 1996-2000 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 #ifndef T2ERRORS_H
20 #define T2ERRORS_H
21
22
23   /*************************************************************************/
24   /*                                                                       */
25   /* Error codes declaration                                               */
26   /*                                                                       */
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   */
29   /* high byte.                                                            */
30   /*                                                                       */
31   /*************************************************************************/
32
33
34   /* Success is always 0. */
35
36 #define T2_Err_Ok                         FT_Err_Ok
37
38   /* High level API errors. */
39
40 #define T2_Err_Invalid_File_Format        FT_Err_Invalid_File_Format
41 #define T2_Err_Invalid_Argument           FT_Err_Invalid_Argument
42 #define T2_Err_Invalid_Driver_Handle      FT_Err_Invalid_Driver_Handle
43 #define T2_Err_Invalid_Face_Handle        FT_Err_Invalid_Face_Handle
44 #define T2_Err_Invalid_Instance_Handle    FT_Err_Invalid_Size_Handle
45 #define T2_Err_Invalid_Glyph_Handle       FT_Err_Invalid_Slot_Handle
46 #define T2_Err_Invalid_CharMap_Handle     FT_Err_Invalid_CharMap_Handle
47 #define T2_Err_Invalid_Glyph_Index        FT_Err_Invalid_Glyph_Index
48
49 #define T2_Err_Unimplemented_Feature      FT_Err_Unimplemented_Feature
50
51 #define T2_Err_Invalid_Engine             FT_Err_Invalid_Driver_Handle
52
53   /* Internal errors. */
54
55 #define T2_Err_Out_Of_Memory              FT_Err_Out_Of_Memory
56 #define T2_Err_Unlisted_Object            FT_Err_Unlisted_Object
57
58   /* General glyph outline errors. */
59
60 #define T2_Err_Invalid_Composite          FT_Err_Invalid_Composite
61
62   /* Bytecode interpreter error codes. */
63
64   /* These error codes are produced by the TrueType */
65   /* bytecode interpreter.  They usually indicate a */
66   /* broken font file, a broken glyph within a font */
67   /* file, or a bug in the interpreter!             */
68
69 #define T2_Err_Invalid_Opcode             0x500
70 #define T2_Err_Too_Few_Arguments          0x501
71 #define T2_Err_Stack_Overflow             0x502
72 #define T2_Err_Code_Overflow              0x503
73 #define T2_Err_Bad_Argument               0x504
74 #define T2_Err_Divide_By_Zero             0x505
75 #define T2_Err_Storage_Overflow           0x506
76 #define T2_Err_Cvt_Overflow               0x507
77 #define T2_Err_Invalid_Reference          0x508
78 #define T2_Err_Invalid_Distance           0x509
79 #define T2_Err_Interpolate_Twilight       0x50A
80 #define T2_Err_Debug_OpCode               0x50B
81 #define T2_Err_ENDF_In_Exec_Stream        0x50C
82 #define T2_Err_Out_Of_CodeRanges          0x50D
83 #define T2_Err_Nested_DEFS                0x50E
84 #define T2_Err_Invalid_CodeRange          0x50F
85 #define T2_Err_Invalid_Displacement       0x510
86 #define T2_Err_Execution_Too_Long         0x511
87
88 #define T2_Err_Too_Many_Instruction_Defs  0x512
89 #define T2_Err_Too_Many_Function_Defs     0x513
90
91   /* Other TrueType specific error codes. */
92
93 #define T2_Err_Table_Missing              0x520
94 #define T2_Err_Too_Many_Extensions        0x521
95 #define T2_Err_Extensions_Unsupported     0x522
96 #define T2_Err_Invalid_Extension_Id       0x523
97
98 #define T2_Err_No_Vertical_Data           0x524
99
100 #define T2_Err_Max_Profile_Missing        0x530
101 #define T2_Err_Header_Table_Missing       0x531
102 #define T2_Err_Horiz_Header_Missing       0x532
103 #define T2_Err_Locations_Missing          0x533
104 #define T2_Err_Name_Table_Missing         0x534
105 #define T2_Err_CMap_Table_Missing         0x535
106 #define T2_Err_Hmtx_Table_Missing         0x536
107 #define T2_Err_OS2_Table_Missing          0x537
108 #define T2_Err_Post_Table_Missing         0x538
109
110 #define T2_Err_Invalid_Horiz_Metrics      0x540
111 #define T2_Err_Invalid_CharMap_Format     0x541
112 #define T2_Err_Invalid_PPem               0x542
113 #define T2_Err_Invalid_Vert_Metrics       0x543
114
115 #define T2_Err_Could_Not_Find_Context     0x550
116
117
118 #endif /* T2ERRORS_H */
119
120
121 /* END */