:pserver:cvsanon@mok.lvcm.com:/CVS/ReactOS reactos
[reactos.git] / include / freetype / internal / t1errors.h
1 /***************************************************************************/
2 /*                                                                         */
3 /*  t1errors.h                                                             */
4 /*                                                                         */
5 /*    Type 1 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 T1ERRORS_H
20 #define T1ERRORS_H
21
22
23   /************************ error codes declaration **************/
24
25   /* The error codes are grouped into `classes' used to indicate the */
26   /* `level' at which the error happened.                            */
27   /*                                                                 */
28   /* The class is given by an error code's high byte.                */
29
30
31   /* ------------- Success is always 0 -------- */
32
33 #define T1_Err_Ok                      FT_Err_Ok
34
35   /* ----------- high level API errors -------- */
36
37 #define T1_Err_Invalid_File_Format     FT_Err_Invalid_File_Format
38 #define T1_Err_Invalid_Argument        FT_Err_Invalid_Argument
39 #define T1_Err_Invalid_Driver_Handle   FT_Err_Invalid_Driver_Handle
40 #define T1_Err_Invalid_Face_Handle     FT_Err_Invalid_Face_Handle
41 #define T1_Err_Invalid_Size_Handle     FT_Err_Invalid_Size_Handle
42 #define T1_Err_Invalid_Glyph_Handle    FT_Err_Invalid_Slot_Handle
43 #define T1_Err_Invalid_CharMap_Handle  FT_Err_Invalid_CharMap_Handle
44 #define T1_Err_Invalid_Glyph_Index     FT_Err_Invalid_Glyph_Index
45
46 #define T1_Err_Unimplemented_Feature   FT_Err_Unimplemented_Feature
47
48 #define T1_Err_Invalid_Engine          FT_Err_Invalid_Driver_Handle
49
50   /* ------------- internal errors ------------ */
51
52 #define T1_Err_Out_Of_Memory           FT_Err_Out_Of_Memory
53 #define T1_Err_Unlisted_Object         FT_Err_Unlisted_Object
54
55   /* ------------ general glyph outline errors ------ */
56
57 #define T1_Err_Invalid_Composite       FT_Err_Invalid_Composite
58
59 #define T1_Err_Syntax_Error            FT_Err_Invalid_File_Format
60 #define T1_Err_Stack_Underflow         FT_Err_Invalid_File_Format
61 #define T1_Err_Stack_Overflow          FT_Err_Invalid_File_Format
62
63
64 #endif /* T1ERRORS_H */
65
66
67 /* END */