Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
4973 | right-hear | 1 | /******************************************************************* |
2 | * |
||
3 | * fterrid.h |
||
4 | * |
||
5 | * TrueType Error ID definitions |
||
6 | * |
||
7 | * Copyright 1996-1999 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 | #ifndef FREETYPE_H |
||
19 | #error "Don't include this file! Use freetype.h instead." |
||
20 | #endif |
||
21 | |||
22 | #ifndef FTERRID_H |
||
23 | #define FTERRID_H |
||
24 | |||
25 | /************************ error codes declaration **************/ |
||
26 | |||
27 | /* The error codes are grouped in 'classes' used to indicate the */ |
||
28 | /* 'level' at which the error happened. */ |
||
29 | /* The class is given by an error code's high byte. */ |
||
30 | |||
31 | |||
32 | /* ------------- Success is always 0 -------- */ |
||
33 | |||
34 | #define TT_Err_Ok 0 |
||
35 | |||
36 | |||
37 | /* -------- High-level API error codes ------ */ |
||
38 | |||
39 | #define TT_Err_Invalid_Face_Handle 0x001 |
||
40 | #define TT_Err_Invalid_Instance_Handle 0x002 |
||
41 | #define TT_Err_Invalid_Glyph_Handle 0x003 |
||
42 | #define TT_Err_Invalid_CharMap_Handle 0x004 |
||
43 | #define TT_Err_Invalid_Result_Address 0x005 |
||
44 | #define TT_Err_Invalid_Glyph_Index 0x006 |
||
45 | #define TT_Err_Invalid_Argument 0x007 |
||
46 | #define TT_Err_Could_Not_Open_File 0x008 |
||
47 | #define TT_Err_File_Is_Not_Collection 0x009 |
||
48 | |||
49 | #define TT_Err_Table_Missing 0x00A |
||
50 | #define TT_Err_Invalid_Horiz_Metrics 0x00B |
||
51 | #define TT_Err_Invalid_CharMap_Format 0x00C |
||
52 | #define TT_Err_Invalid_PPem 0x00D |
||
53 | #define TT_Err_Invalid_Vert_Metrics 0x00E |
||
54 | |||
55 | #define TT_Err_Invalid_File_Format 0x010 |
||
56 | |||
57 | #define TT_Err_Invalid_Engine 0x020 |
||
58 | #define TT_Err_Too_Many_Extensions 0x021 |
||
59 | #define TT_Err_Extensions_Unsupported 0x022 |
||
60 | #define TT_Err_Invalid_Extension_Id 0x023 |
||
61 | |||
62 | #define TT_Err_No_Vertical_Data 0x030 |
||
63 | |||
64 | #define TT_Err_Max_Profile_Missing 0x080 |
||
65 | #define TT_Err_Header_Table_Missing 0x081 |
||
66 | #define TT_Err_Horiz_Header_Missing 0x082 |
||
67 | #define TT_Err_Locations_Missing 0x083 |
||
68 | #define TT_Err_Name_Table_Missing 0x084 |
||
69 | #define TT_Err_CMap_Table_Missing 0x085 |
||
70 | #define TT_Err_Hmtx_Table_Missing 0x086 |
||
71 | #define TT_Err_OS2_Table_Missing 0x087 |
||
72 | #define TT_Err_Post_Table_Missing 0x088 |
||
73 | #define TT_Err_Glyf_Table_Missing 0x089 |
||
74 | |||
75 | |||
76 | /* -------- Memory component error codes ---- */ |
||
77 | |||
78 | /* this error indicates that an operation cannot */ |
||
79 | /* be performed due to memory exhaustion. */ |
||
80 | |||
81 | #define TT_Err_Out_Of_Memory 0x100 |
||
82 | |||
83 | |||
84 | /* -------- File component error codes ------ */ |
||
85 | |||
86 | /* these error codes indicate that the file could */ |
||
87 | /* not be accessed properly. Usually, this means */ |
||
88 | /* a broken font file! */ |
||
89 | |||
90 | #define TT_Err_Invalid_File_Offset 0x200 |
||
91 | #define TT_Err_Invalid_File_Read 0x201 |
||
92 | #define TT_Err_Invalid_Frame_Access 0x202 |
||
93 | |||
94 | |||
95 | /* -------- Glyph loader error codes -------- */ |
||
96 | |||
97 | /* Produced only by the glyph loader, these error */ |
||
98 | /* codes indicate a broken glyph in a font file. */ |
||
99 | |||
100 | #define TT_Err_Too_Many_Points 0x300 |
||
101 | #define TT_Err_Too_Many_Contours 0x301 |
||
102 | #define TT_Err_Invalid_Composite 0x302 |
||
103 | #define TT_Err_Too_Many_Ins 0x303 |
||
104 | |||
105 | |||
106 | /* --- bytecode interpreter error codes ----- */ |
||
107 | |||
108 | /* These error codes are produced by the TrueType */ |
||
109 | /* bytecode interpreter. They usually indicate a */ |
||
110 | /* broken font file, a broken glyph within a font */ |
||
111 | /* file, or a bug in the interpreter! */ |
||
112 | |||
113 | #define TT_Err_Invalid_Opcode 0x400 |
||
114 | #define TT_Err_Too_Few_Arguments 0x401 |
||
115 | #define TT_Err_Stack_Overflow 0x402 |
||
116 | #define TT_Err_Code_Overflow 0x403 |
||
117 | #define TT_Err_Bad_Argument 0x404 |
||
118 | #define TT_Err_Divide_By_Zero 0x405 |
||
119 | #define TT_Err_Storage_Overflow 0x406 |
||
120 | #define TT_Err_Cvt_Overflow 0x407 |
||
121 | #define TT_Err_Invalid_Reference 0x408 |
||
122 | #define TT_Err_Invalid_Distance 0x409 |
||
123 | #define TT_Err_Interpolate_Twilight 0x40A |
||
124 | #define TT_Err_Debug_OpCode 0x40B |
||
125 | #define TT_Err_ENDF_In_Exec_Stream 0x40C |
||
126 | #define TT_Err_Out_Of_CodeRanges 0x40D |
||
127 | #define TT_Err_Nested_DEFS 0x40E |
||
128 | #define TT_Err_Invalid_CodeRange 0x40F |
||
129 | #define TT_Err_Invalid_Displacement 0x410 |
||
130 | #define TT_Err_Execution_Too_Long 0x411 |
||
131 | |||
132 | |||
133 | /* ------ internal failure error codes ----- */ |
||
134 | |||
135 | /* These error codes are produced when an incoherent */ |
||
136 | /* library state has been detected. These reflect a */ |
||
137 | /* severe bug in the engine! (Or a major overwrite */ |
||
138 | /* of your application into the library's data.) */ |
||
139 | |||
140 | #define TT_Err_Nested_Frame_Access 0x500 |
||
141 | #define TT_Err_Invalid_Cache_List 0x501 |
||
142 | #define TT_Err_Could_Not_Find_Context 0x502 |
||
143 | #define TT_Err_Unlisted_Object 0x503 |
||
144 | |||
145 | |||
146 | /* ---- scan-line converter error codes ----- */ |
||
147 | |||
148 | /* These error codes are produced by the raster component. */ |
||
149 | /* They indicate that an outline structure was incoherently */ |
||
150 | /* setup, or that you're trying to render an horribly */ |
||
151 | /* complex glyph! */ |
||
152 | |||
153 | #define TT_Err_Raster_Pool_Overflow 0x600 |
||
154 | #define TT_Err_Raster_Negative_Height 0x601 |
||
155 | #define TT_Err_Raster_Invalid_Value 0x602 |
||
156 | #define TT_Err_Raster_Not_Initialized 0x603 |
||
157 | |||
158 | #endif /* FTERRID_H */ |
||
159 | |||
160 | |||
161 | /* END */ |