Bringing ChocolateCaste-0.7 into the main branch.
[AROS-Contrib.git] / freetype1 / ft_conf.h.in
blobc19b4424c01fbede2a1423da812c8c4824a443c1
1 /* ft_conf.h.in. */
3 /* This file is part of the FreeType project. */
6 /* we need the following because there are some typedefs in this file */
8 #ifndef FT_CONF_H
9 #define FT_CONF_H
11 /* Define to empty if the keyword does not work. */
12 #undef const
14 /* Define if you have a working `mmap' system call. */
15 #undef HAVE_MMAP
17 /* Define if you have the <stdlib.h> header file. */
18 #undef HAVE_STDLIB_H
20 /* Define if the X Window System is missing or not being used. */
21 #undef X_DISPLAY_MISSING
23 /* The number of bytes in a int. */
24 #undef SIZEOF_INT
26 /* The number of bytes in a long. */
27 #undef SIZEOF_LONG
29 /* Define if you have the getpagesize function. */
30 #undef HAVE_GETPAGESIZE
32 /* Define if you have the memcpy function. */
33 #undef HAVE_MEMCPY
35 /* Define if you have the memmove function. */
36 #undef HAVE_MEMMOVE
38 /* Define if you have the <fcntl.h> header file. */
39 #undef HAVE_FCNTL_H
41 /* Define if you have the <unistd.h> header file. */
42 #undef HAVE_UNISTD_H
44 /* Define if you have the <locale.h> header file. */
45 #undef HAVE_LOCALE_H
47 /* Define if you have the <libintl.h> header file. */
48 #undef HAVE_LIBINTL_H
50 /* Define if you have the libintl library. */
51 #undef HAVE_LIBINTL
53 /**********************************************************************/
54 /* */
55 /* The following configuration macros can be tweaked manually by */
56 /* a developer to turn on or off certain features or options in the */
57 /* TrueType engine. This may be useful to tune it for specific */
58 /* purposes.. */
59 /* */
60 /**********************************************************************/
62 /*************************************************************************/
63 /* Define this if the underlying operating system uses a different */
64 /* character width than 8bit for file names. You must then also supply */
65 /* a typedef declaration for defining 'TT_Text'. Default is off. */
67 #undef HAVE_TT_TEXT
70 /*************************************************************************/
71 /* Define this if you want to generate code to support engine extensions */
72 /* Default is on, but if you're satisfied by the basic services provided */
73 /* by the engine and need no extensions, undefine this configuration */
74 /* macro to save a few more bytes. */
76 #define TT_CONFIG_OPTION_EXTEND_ENGINE
79 /*************************************************************************/
80 /* Define this if you want to generate code to support gray-scaling, */
81 /* a.k.a. font-smoothing or anti-aliasing. Default is on, but you can */
82 /* disable it if you don't need it. */
84 #define TT_CONFIG_OPTION_GRAY_SCALING
87 /*************************************************************************/
88 /* Define this if you want to completely disable the use of the bytecode */
89 /* interpreter. Doing so will produce a much smaller library, but the */
90 /* quality of the rendered glyphs will enormously suffer from this. */
91 /* */
92 /* This switch was introduced due to the Apple patents issue which */
93 /* emerged recently on the FreeType lists. We still do not have Apple's */
94 /* opinion on the subject and will change this as soon as we have. */
96 #undef TT_CONFIG_OPTION_NO_INTERPRETER
99 /*************************************************************************/
100 /* Define this if you want to use a big 'switch' statement within the */
101 /* bytecode interpreter. Because some non-optimizing compilers are not */
102 /* able to produce jump tables from such statements, undefining this */
103 /* configuration macro will generate the appropriate C jump table in */
104 /* ttinterp.c. If you use an optimizing compiler, you should leave it */
105 /* defined for better performance and code compactness.. */
107 #define TT_CONFIG_OPTION_INTERPRETER_SWITCH
110 /*************************************************************************/
111 /* Define this if you want to build a 'static' version of the scan-line */
112 /* converter (the component which in charge of converting outlines into */
113 /* bitmaps). This will produce a bigger object file for "ttraster.c", */
114 /* which _may_ be faster on some architectures.. */
115 /* */
116 /* Do NOT DEFINE THIS is you build a thread-safe version of the engine */
117 /* */
118 #undef TT_CONFIG_OPTION_STATIC_RASTER
121 /*************************************************************************/
122 /* Define this if you want to build a 'static' version of the TrueType */
123 /* bytecode interpreter. This will produce much bigger code, which */
124 /* _may_ be faster on some architectures.. */
125 /* */
126 /* Do NOT DEFINE THIS is you build a thread-safe version of the engine */
127 /* */
128 #undef TT_CONFIG_OPTION_STATIC_INTERPRETER
131 /*************************************************************************/
132 /* Define TT_CONFIG_THREAD_SAFE if you want to build a thread-safe */
133 /* version of the library. */
135 #undef TT_CONFIG_OPTION_THREAD_SAFE
138 /**********************************************************************/
139 /* */
140 /* The following macros are used to define the debug level, as well */
141 /* as individual tracing levels for each component. There are */
142 /* currently three modes of operation : */
143 /* */
144 /* - trace mode (define DEBUG_LEVEL_TRACE) */
145 /* */
146 /* The engine prints all error messages, as well as tracing */
147 /* ones, filtered by each component's level */
148 /* */
149 /* - debug mode (define DEBUG_LEVEL_ERROR) */
150 /* */
151 /* Disable tracing, but keeps error output and assertion */
152 /* checks. */
153 /* */
154 /* - release mode (don't define anything) */
155 /* */
156 /* Don't include error-checking or tracing code in the */
157 /* engine's code. Ideal for releases. */
158 /* */
159 /* NOTE : */
160 /* */
161 /* Each component's tracing level is defined in its own source. */
162 /* */
163 /**********************************************************************/
165 /* Define if you want to use the tracing debug mode */
166 #undef DEBUG_LEVEL_TRACE
168 /* Define if you want to use the error debug mode - ignored if */
169 /* DEBUG_LEVEL_TRACE is defined */
170 #undef DEBUG_LEVEL_ERROR
173 /**************************************************************************/
174 /* Definition of various integer sizes. These types are used by ttcalc */
175 /* and ttinterp (for the 64-bit integers) only.. */
177 #if SIZEOF_INT == 4
179 typedef signed int TT_Int32;
180 typedef unsigned int TT_Word32;
182 #elif SIZEOF_LONG == 4
184 typedef signed long TT_Int32;
185 typedef unsigned long TT_Word32;
187 #else
188 #error "no 32bit type found"
189 #endif
191 #if SIZEOF_LONG == 8
193 /* LONG64 must be defined when a 64-bit type is available */
194 /* INT64 must then be defined to this type.. */
195 #define LONG64
196 #define INT64 long
198 #else
200 /* GCC provides the non-ANSI 'long long' 64-bit type. You can activate */
201 /* by defining the TT_USE_LONG_LONG macro in 'ft_conf.h'. Note that this */
202 /* will produce many -ansi warnings during library compilation. */
203 #ifdef TT_USE_LONG_LONG
205 #define LONG64
206 #define INT64 long long
208 #endif /* TT_USE_LONG_LONG */
209 #endif
211 #endif /* FT_CONF_H */