]> git.saurik.com Git - wxWidgets.git/blame - src/freetype/freetype/fterrors.h
added missing return on error
[wxWidgets.git] / src / freetype / freetype / fterrors.h
CommitLineData
cabec872
RR
1/***************************************************************************/
2/* */
3/* fterrors.h */
4/* */
5/* FreeType error codes (specification). */
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 /*************************************************************************/
20 /* */
21 /* This file is used to define the FreeType error enumeration constants */
22 /* It can also be used to create an error message table easily with */
23 /* something like: */
24 /* */
25 /* { */
26 /* #undef FTERRORS_H */
27 /* #define FT_ERRORDEF( e, v, s ) { e, s }, */
28 /* #define FT_ERROR_START_LIST { */
29 /* #define FT_ERROR_END_LIST { 0, 0 } }; */
30 /* */
31 /* const struct */
32 /* { */
33 /* int err_code; */
34 /* const char* err_msg */
35 /* } ft_errors[] = */
36 /* */
37 /* #include <freetype/fterrors.h> */
38 /* } */
39 /* */
40 /*************************************************************************/
41
42
43#ifndef FTERRORS_H
44#define FTERRORS_H
45
46
47#ifndef FT_ERRORDEF
48
49#define FT_ERRORDEF( e, v, s ) e = v,
50#define FT_ERROR_START_LIST enum {
51#define FT_ERROR_END_LIST FT_Err_Max };
52
53#endif /* !FT_ERRORDEF */
54
55
56#ifdef FT_ERROR_START_LIST
57 FT_ERROR_START_LIST
58#endif
59
60 FT_ERRORDEF( FT_Err_Ok, 0x0000, \
61 "no error" )
62 FT_ERRORDEF( FT_Err_Cannot_Open_Resource, 0x0001, \
63 "can't open stream" )
64 FT_ERRORDEF( FT_Err_Unknown_File_Format, 0x0002, \
65 "unknown file format" )
66 FT_ERRORDEF( FT_Err_Invalid_File_Format, 0x0003, \
67 "broken file" )
68
69 FT_ERRORDEF( FT_Err_Invalid_Argument, 0x0010, \
70 "invalid argument" )
71 FT_ERRORDEF( FT_Err_Invalid_Handle, 0x0011, \
72 "invalid object handle" )
73 FT_ERRORDEF( FT_Err_Invalid_Glyph_Index, 0x0012, \
74 "invalid glyph index" )
75 FT_ERRORDEF( FT_Err_Invalid_Character_Code, 0x0013, \
76 "invalid character code" )
77
78 FT_ERRORDEF( FT_Err_Unimplemented_Feature, 0x0020, \
79 "unimplemented feature" )
80 FT_ERRORDEF( FT_Err_Invalid_Glyph_Format, 0x0021, \
81 "unsupported glyph image format" )
82 FT_ERRORDEF( FT_Err_Cannot_Render_Glyph, 0x0022, \
83 "cannot render this glyph format" )
84
85 FT_ERRORDEF( FT_Err_Invalid_Library_Handle, 0x0030, \
86 "invalid library handle" )
87 FT_ERRORDEF( FT_Err_Invalid_Driver_Handle, 0x0031, \
88 "invalid module handle" )
89 FT_ERRORDEF( FT_Err_Invalid_Face_Handle, 0x0032, \
90 "invalid face handle" )
91 FT_ERRORDEF( FT_Err_Invalid_Size_Handle, 0x0033, \
92 "invalid size handle" )
93 FT_ERRORDEF( FT_Err_Invalid_Slot_Handle, 0x0034, \
94 "invalid glyph slot handle" )
95 FT_ERRORDEF( FT_Err_Invalid_CharMap_Handle, 0x0035, \
96 "invalid charmap handle" )
97 FT_ERRORDEF( FT_Err_Invalid_Outline, 0x0036, \
98 "invalid outline" )
99 FT_ERRORDEF( FT_Err_Invalid_Version, 0x0037, \
100 "invalid FreeType version" )
101 FT_ERRORDEF( FT_Err_Lower_Module_Version, 0x0038, \
102 "module version is too low" )
103
104 FT_ERRORDEF( FT_Err_Too_Many_Drivers, 0x0040, \
105 "too many modules" )
106 FT_ERRORDEF( FT_Err_Too_Many_Extensions, 0x0041, \
107 "too many extensions" )
108
109 FT_ERRORDEF( FT_Err_Out_Of_Memory, 0x0050, \
110 "out of memory" )
111 FT_ERRORDEF( FT_Err_Unlisted_Object, 0x0051, \
112 "unlisted object" )
113
114 FT_ERRORDEF( FT_Err_Invalid_Stream_Handle, 0x0060, \
115 "invalid stream handle" )
116 FT_ERRORDEF( FT_Err_Cannot_Open_Stream, 0x0061, \
117 "cannot open stream" )
118 FT_ERRORDEF( FT_Err_Invalid_Stream_Seek, 0x0062, \
119 "invalid stream seek" )
120 FT_ERRORDEF( FT_Err_Invalid_Stream_Skip, 0x0063, \
121 "invalid stream skip" )
122 FT_ERRORDEF( FT_Err_Invalid_Stream_Read, 0x0064, \
123 "invalid stream read" )
124 FT_ERRORDEF( FT_Err_Invalid_Stream_Operation, 0x0065, \
125 "invalid stream operation" )
126 FT_ERRORDEF( FT_Err_Invalid_Frame_Operation, 0x0066, \
127 "invalid frame operation" )
128 FT_ERRORDEF( FT_Err_Nested_Frame_Access, 0x0067, \
129 "nested frame access" )
130 FT_ERRORDEF( FT_Err_Invalid_Frame_Read, 0x0068, \
131 "invalid frame read" )
132
133 FT_ERRORDEF( FT_Err_Invalid_Composite, 0x0070, \
134 "invalid composite glyph" )
135 FT_ERRORDEF( FT_Err_Too_Many_Hints, 0x0071, \
136 "too many hints" )
137
138 FT_ERRORDEF( FT_Err_Raster_Uninitialized, 0x0080, \
139 "raster uninitialized" )
140 FT_ERRORDEF( FT_Err_Raster_Corrupted, 0x0081, \
141 "raster corrupted" )
142 FT_ERRORDEF( FT_Err_Raster_Overflow, 0x0082, \
143 "raster overflow" )
144 FT_ERRORDEF( FT_Err_Raster_Negative_Height, 0x0083, \
145 "negative height while rastering" )
146
147 /* range 0x400 - 0x4FF is reserved for TrueType specific stuff */
148
149 /* range 0x500 - 0x5FF is reserved for CFF specific stuff */
150
151 /* range 0x600 - 0x6FF is reserved for Type1 specific stuff */
152
153#ifdef FT_ERROR_END_LIST
154 FT_ERROR_END_LIST
155#endif
156
157
158#undef FT_ERROR_START_LIST
159#undef FT_ERROR_END_LIST
160#undef FT_ERRORDEF
161
162
163#endif /* FTERRORS_H */
164
165
166/* END */