1049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project/***************************************************************************/
2049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project/*                                                                         */
3049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project/*  ftoption.h                                                             */
4049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project/*                                                                         */
5049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project/*    User-selectable configuration macros (specification only).           */
6049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project/*                                                                         */
7a2b9955b49034a51dfbc8bf9f4e9d312149cecacXianzhu Wang/*  Copyright 1996-2013 by                                                 */
8049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project/*  David Turner, Robert Wilhelm, and Werner Lemberg.                      */
9049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project/*                                                                         */
10049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project/*  This file is part of the FreeType project, and may only be used,       */
11049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project/*  modified, and distributed under the terms of the FreeType project      */
12049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project/*  license, LICENSE.TXT.  By continuing to use, modify, or distribute     */
13049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project/*  this file you indicate that you have read the license and              */
14049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project/*  understand and accept it fully.                                        */
15049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project/*                                                                         */
16049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project/***************************************************************************/
17049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project
18049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project
19049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project#ifndef __FTOPTION_H__
20049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project#define __FTOPTION_H__
21049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project
22049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project
23049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project#include <ft2build.h>
24049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project
25049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project
26049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source ProjectFT_BEGIN_HEADER
27049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project
28049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*************************************************************************/
29049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
30049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                 USER-SELECTABLE CONFIGURATION MACROS                  */
31049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
32049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /* This file contains the default configuration macro definitions for    */
33049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /* a standard build of the FreeType library.  There are three ways to    */
34049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /* use this file to build project-specific versions of the library:      */
35049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
36049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*  - You can modify this file by hand, but this is not recommended in   */
37049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*    cases where you would like to build several versions of the        */
38049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*    library from a single source directory.                            */
39049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
40049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*  - You can put a copy of this file in your build directory, more      */
41049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*    precisely in `$BUILD/freetype/config/ftoption.h', where `$BUILD'   */
42049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*    is the name of a directory that is included _before_ the FreeType  */
43049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*    include path during compilation.                                   */
44049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
45049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*    The default FreeType Makefiles and Jamfiles use the build          */
46049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*    directory `builds/<system>' by default, but you can easily change  */
47049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*    that for your own projects.                                        */
48049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
49049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*  - Copy the file <ft2build.h> to `$BUILD/ft2build.h' and modify it    */
50049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*    slightly to pre-define the macro FT_CONFIG_OPTIONS_H used to       */
51049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*    locate this file during the build.  For example,                   */
52049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
53049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*      #define FT_CONFIG_OPTIONS_H  <myftoptions.h>                     */
54049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*      #include <freetype/config/ftheader.h>                            */
55049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
56049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*    will use `$BUILD/myftoptions.h' instead of this file for macro     */
57049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*    definitions.                                                       */
58049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
59049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*    Note also that you can similarly pre-define the macro              */
60049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*    FT_CONFIG_MODULES_H used to locate the file listing of the modules */
61049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*    that are statically linked to the library at compile time.  By     */
62049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*    default, this file is <freetype/config/ftmodule.h>.                */
63049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
64049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*  We highly recommend using the third method whenever possible.        */
65049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
66049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*************************************************************************/
67049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project
68049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project
69049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*************************************************************************/
70049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*************************************************************************/
71049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /****                                                                 ****/
72049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /**** G E N E R A L   F R E E T Y P E   2   C O N F I G U R A T I O N ****/
73049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /****                                                                 ****/
74049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*************************************************************************/
75049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*************************************************************************/
76049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project
77049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project
78049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*************************************************************************/
79049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
80049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /* Uncomment the line below if you want to activate sub-pixel rendering  */
81049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /* (a.k.a. LCD rendering, or ClearType) in this build of the library.    */
82049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
83049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /* Note that this feature is covered by several Microsoft patents        */
84049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /* and should not be activated in any default build of the library.      */
85049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
86049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /* This macro has no impact on the FreeType API, only on its             */
87049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /* _implementation_.  For example, using FT_RENDER_MODE_LCD when calling */
88295ffce55e0198e7a9f7d46b33f5c2b4147bf821David 'Digit' Turner  /* FT_Render_Glyph still generates a bitmap that is 3 times wider than   */
89295ffce55e0198e7a9f7d46b33f5c2b4147bf821David 'Digit' Turner  /* the original size in case this macro isn't defined; however, each     */
90295ffce55e0198e7a9f7d46b33f5c2b4147bf821David 'Digit' Turner  /* triplet of subpixels has R=G=B.                                       */
91049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
92049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /* This is done to allow FreeType clients to run unmodified, forcing     */
93049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /* them to display normal gray-level anti-aliased glyphs.                */
94049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
95049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project/* #define FT_CONFIG_OPTION_SUBPIXEL_RENDERING */
96049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project
97049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project
98049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*************************************************************************/
99049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
100049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /* Many compilers provide a non-ANSI 64-bit data type that can be used   */
101049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /* by FreeType to speed up some computations.  However, this will create */
102049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /* some problems when compiling the library in strict ANSI mode.         */
103049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
104049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /* For this reason, the use of 64-bit integers is normally disabled when */
105049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /* the __STDC__ macro is defined.  You can however disable this by       */
106049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /* defining the macro FT_CONFIG_OPTION_FORCE_INT64 here.                 */
107049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
108049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /* For most compilers, this will only create compilation warnings when   */
109049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /* building the library.                                                 */
110049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
111049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /* ObNote: The compiler-specific 64-bit integers are detected in the     */
112049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*         file `ftconfig.h' either statically or through the            */
113049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*         `configure' script on supported platforms.                    */
114049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
1150a9d06e2b5cf75c3d6ba958026bfdf4745f576d6The Android Open Source Project#undef FT_CONFIG_OPTION_FORCE_INT64
116049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project
117049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project
118049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*************************************************************************/
119049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
1200a9d06e2b5cf75c3d6ba958026bfdf4745f576d6The Android Open Source Project  /* If this macro is defined, do not try to use an assembler version of   */
1210a9d06e2b5cf75c3d6ba958026bfdf4745f576d6The Android Open Source Project  /* performance-critical functions (e.g. FT_MulFix).  You should only do  */
1220a9d06e2b5cf75c3d6ba958026bfdf4745f576d6The Android Open Source Project  /* that to verify that the assembler function works properly, or to      */
1230a9d06e2b5cf75c3d6ba958026bfdf4745f576d6The Android Open Source Project  /* execute benchmark tests of the various implementations.               */
124049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project/* #define FT_CONFIG_OPTION_NO_ASSEMBLER */
125049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project
1260a9d06e2b5cf75c3d6ba958026bfdf4745f576d6The Android Open Source Project
127049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*************************************************************************/
128049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
1290a9d06e2b5cf75c3d6ba958026bfdf4745f576d6The Android Open Source Project  /* If this macro is defined, try to use an inlined assembler version of  */
1300a9d06e2b5cf75c3d6ba958026bfdf4745f576d6The Android Open Source Project  /* the `FT_MulFix' function, which is a `hotspot' when loading and       */
1310a9d06e2b5cf75c3d6ba958026bfdf4745f576d6The Android Open Source Project  /* hinting glyphs, and which should be executed as fast as possible.     */
132049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
1330a9d06e2b5cf75c3d6ba958026bfdf4745f576d6The Android Open Source Project  /* Note that if your compiler or CPU is not supported, this will default */
1340a9d06e2b5cf75c3d6ba958026bfdf4745f576d6The Android Open Source Project  /* to the standard and portable implementation found in `ftcalc.c'.      */
135049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
136049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project#define FT_CONFIG_OPTION_INLINE_MULFIX
137049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project
138049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project
139049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*************************************************************************/
140049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
141049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /* LZW-compressed file support.                                          */
142049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
143049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*   FreeType now handles font files that have been compressed with the  */
144049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*   `compress' program.  This is mostly used to parse many of the PCF   */
145049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*   files that come with various X11 distributions.  The implementation */
146049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*   uses NetBSD's `zopen' to partially uncompress the file on the fly   */
147049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*   (see src/lzw/ftgzip.c).                                             */
148049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
149049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*   Define this macro if you want to enable this `feature'.             */
150049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
151049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project#define FT_CONFIG_OPTION_USE_LZW
152049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project
153049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project
154049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*************************************************************************/
155049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
156049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /* Gzip-compressed file support.                                         */
157049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
158049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*   FreeType now handles font files that have been compressed with the  */
159049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*   `gzip' program.  This is mostly used to parse many of the PCF files */
160049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*   that come with XFree86.  The implementation uses `zlib' to          */
161049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*   partially uncompress the file on the fly (see src/gzip/ftgzip.c).   */
162049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
163049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*   Define this macro if you want to enable this `feature'.  See also   */
164049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*   the macro FT_CONFIG_OPTION_SYSTEM_ZLIB below.                       */
165049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
166049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project#define FT_CONFIG_OPTION_USE_ZLIB
167049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project
168049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project
169049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*************************************************************************/
170049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
171049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /* ZLib library selection                                                */
172049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
173049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*   This macro is only used when FT_CONFIG_OPTION_USE_ZLIB is defined.  */
174049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*   It allows FreeType's `ftgzip' component to link to the system's     */
175049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*   installation of the ZLib library.  This is useful on systems like   */
176049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*   Unix or VMS where it generally is already available.                */
177049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
178049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*   If you let it undefined, the component will use its own copy        */
179049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*   of the zlib sources instead.  These have been modified to be        */
180049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*   included directly within the component and *not* export external    */
181049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*   function names.  This allows you to link any program with FreeType  */
182049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*   _and_ ZLib without linking conflicts.                               */
183049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
184049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*   Do not #undef this macro here since the build system might define   */
185049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*   it for certain configurations only.                                 */
186049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
1870a9d06e2b5cf75c3d6ba958026bfdf4745f576d6The Android Open Source Project/* #define FT_CONFIG_OPTION_SYSTEM_ZLIB */
188049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project
189049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project
190049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*************************************************************************/
191049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
192c3ee10bfa1f76a18500b487de9c85757375b48f3David 'Digit' Turner  /* Bzip2-compressed file support.                                        */
193c3ee10bfa1f76a18500b487de9c85757375b48f3David 'Digit' Turner  /*                                                                       */
194c3ee10bfa1f76a18500b487de9c85757375b48f3David 'Digit' Turner  /*   FreeType now handles font files that have been compressed with the  */
195c3ee10bfa1f76a18500b487de9c85757375b48f3David 'Digit' Turner  /*   `bzip2' program.  This is mostly used to parse many of the PCF      */
196c3ee10bfa1f76a18500b487de9c85757375b48f3David 'Digit' Turner  /*   files that come with XFree86.  The implementation uses `libbz2' to  */
197c3ee10bfa1f76a18500b487de9c85757375b48f3David 'Digit' Turner  /*   partially uncompress the file on the fly (see src/bzip2/ftbzip2.c). */
198c3ee10bfa1f76a18500b487de9c85757375b48f3David 'Digit' Turner  /*   Contrary to gzip, bzip2 currently is not included and need to use   */
199c3ee10bfa1f76a18500b487de9c85757375b48f3David 'Digit' Turner  /*   the system available bzip2 implementation.                          */
200c3ee10bfa1f76a18500b487de9c85757375b48f3David 'Digit' Turner  /*                                                                       */
201c3ee10bfa1f76a18500b487de9c85757375b48f3David 'Digit' Turner  /*   Define this macro if you want to enable this `feature'.             */
202c3ee10bfa1f76a18500b487de9c85757375b48f3David 'Digit' Turner  /*                                                                       */
203c3ee10bfa1f76a18500b487de9c85757375b48f3David 'Digit' Turner/* #define FT_CONFIG_OPTION_USE_BZIP2 */
204c3ee10bfa1f76a18500b487de9c85757375b48f3David 'Digit' Turner
205c3ee10bfa1f76a18500b487de9c85757375b48f3David 'Digit' Turner
206c3ee10bfa1f76a18500b487de9c85757375b48f3David 'Digit' Turner  /*************************************************************************/
207c3ee10bfa1f76a18500b487de9c85757375b48f3David 'Digit' Turner  /*                                                                       */
208c3ee10bfa1f76a18500b487de9c85757375b48f3David 'Digit' Turner  /* Define to disable the use of file stream functions and types, FILE,   */
209c3ee10bfa1f76a18500b487de9c85757375b48f3David 'Digit' Turner  /* fopen() etc.  Enables the use of smaller system libraries on embedded */
210c3ee10bfa1f76a18500b487de9c85757375b48f3David 'Digit' Turner  /* systems that have multiple system libraries, some with or without     */
211c3ee10bfa1f76a18500b487de9c85757375b48f3David 'Digit' Turner  /* file stream support, in the cases where file stream support is not    */
212c3ee10bfa1f76a18500b487de9c85757375b48f3David 'Digit' Turner  /* necessary such as memory loading of font files.                       */
213c3ee10bfa1f76a18500b487de9c85757375b48f3David 'Digit' Turner  /*                                                                       */
214c3ee10bfa1f76a18500b487de9c85757375b48f3David 'Digit' Turner/* #define FT_CONFIG_OPTION_DISABLE_STREAM_SUPPORT */
215c3ee10bfa1f76a18500b487de9c85757375b48f3David 'Digit' Turner
216c3ee10bfa1f76a18500b487de9c85757375b48f3David 'Digit' Turner
217c3ee10bfa1f76a18500b487de9c85757375b48f3David 'Digit' Turner  /*************************************************************************/
218c3ee10bfa1f76a18500b487de9c85757375b48f3David 'Digit' Turner  /*                                                                       */
219a2b9955b49034a51dfbc8bf9f4e9d312149cecacXianzhu Wang  /*  PNG bitmap support.                                                  */
220a2b9955b49034a51dfbc8bf9f4e9d312149cecacXianzhu Wang  /*                                                                       */
221a2b9955b49034a51dfbc8bf9f4e9d312149cecacXianzhu Wang  /*   FreeType now handles loading color bitmap glyphs in the PNG format. */
222a2b9955b49034a51dfbc8bf9f4e9d312149cecacXianzhu Wang  /*   This requires help from the external libpng library.  Uncompressed  */
223a2b9955b49034a51dfbc8bf9f4e9d312149cecacXianzhu Wang  /*   color bitmaps do not need any external libraries and will be        */
224a2b9955b49034a51dfbc8bf9f4e9d312149cecacXianzhu Wang  /*   supported regardless of this configuration.                         */
225a2b9955b49034a51dfbc8bf9f4e9d312149cecacXianzhu Wang  /*                                                                       */
226a2b9955b49034a51dfbc8bf9f4e9d312149cecacXianzhu Wang  /*   Define this macro if you want to enable this `feature'.             */
227a2b9955b49034a51dfbc8bf9f4e9d312149cecacXianzhu Wang  /*                                                                       */
228a2b9955b49034a51dfbc8bf9f4e9d312149cecacXianzhu Wang#define FT_CONFIG_OPTION_USE_PNG
229a2b9955b49034a51dfbc8bf9f4e9d312149cecacXianzhu Wang
230a2b9955b49034a51dfbc8bf9f4e9d312149cecacXianzhu Wang
231a2b9955b49034a51dfbc8bf9f4e9d312149cecacXianzhu Wang  /*************************************************************************/
232a2b9955b49034a51dfbc8bf9f4e9d312149cecacXianzhu Wang  /*                                                                       */
233049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /* DLL export compilation                                                */
234049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
235049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*   When compiling FreeType as a DLL, some systems/compilers need a     */
236049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*   special keyword in front OR after the return type of function       */
237049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*   declarations.                                                       */
238049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
239049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*   Two macros are used within the FreeType source code to define       */
240049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*   exported library functions: FT_EXPORT and FT_EXPORT_DEF.            */
241049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
242049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*     FT_EXPORT( return_type )                                          */
243049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
244049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*       is used in a function declaration, as in                        */
245049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
246049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*         FT_EXPORT( FT_Error )                                         */
247049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*         FT_Init_FreeType( FT_Library*  alibrary );                    */
248049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
249049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
250049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*     FT_EXPORT_DEF( return_type )                                      */
251049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
252049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*       is used in a function definition, as in                         */
253049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
254049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*         FT_EXPORT_DEF( FT_Error )                                     */
255049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*         FT_Init_FreeType( FT_Library*  alibrary )                     */
256049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*         {                                                             */
257049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*           ... some code ...                                           */
258049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*           return FT_Err_Ok;                                           */
259049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*         }                                                             */
260049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
261049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*   You can provide your own implementation of FT_EXPORT and            */
262049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*   FT_EXPORT_DEF here if you want.  If you leave them undefined, they  */
263049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*   will be later automatically defined as `extern return_type' to      */
264049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*   allow normal compilation.                                           */
265049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
266049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*   Do not #undef these macros here since the build system might define */
267049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*   them for certain configurations only.                               */
268049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
2690a9d06e2b5cf75c3d6ba958026bfdf4745f576d6The Android Open Source Project/* #define FT_EXPORT(x)      extern x */
2700a9d06e2b5cf75c3d6ba958026bfdf4745f576d6The Android Open Source Project/* #define FT_EXPORT_DEF(x)  x */
271049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project
272049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project
273049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*************************************************************************/
274049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
275049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /* Glyph Postscript Names handling                                       */
276049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
2770a9d06e2b5cf75c3d6ba958026bfdf4745f576d6The Android Open Source Project  /*   By default, FreeType 2 is compiled with the `psnames' module.  This */
278049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*   module is in charge of converting a glyph name string into a        */
279049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*   Unicode value, or return a Macintosh standard glyph name for the    */
280049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*   use with the TrueType `post' table.                                 */
281049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
2820a9d06e2b5cf75c3d6ba958026bfdf4745f576d6The Android Open Source Project  /*   Undefine this macro if you do not want `psnames' compiled in your   */
283049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*   build of FreeType.  This has the following effects:                 */
284049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
285049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*   - The TrueType driver will provide its own set of glyph names,      */
286049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*     if you build it to support postscript names in the TrueType       */
287049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*     `post' table.                                                     */
288049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
2890a9d06e2b5cf75c3d6ba958026bfdf4745f576d6The Android Open Source Project  /*   - The Type 1 driver will not be able to synthesize a Unicode        */
290049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*     charmap out of the glyphs found in the fonts.                     */
291049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
292049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*   You would normally undefine this configuration macro when building  */
293049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*   a version of FreeType that doesn't contain a Type 1 or CFF driver.  */
294049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
295049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project#define FT_CONFIG_OPTION_POSTSCRIPT_NAMES
296049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project
297049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project
298049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*************************************************************************/
299049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
300049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /* Postscript Names to Unicode Values support                            */
301049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
302049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*   By default, FreeType 2 is built with the `PSNames' module compiled  */
303049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*   in.  Among other things, the module is used to convert a glyph name */
304049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*   into a Unicode value.  This is especially useful in order to        */
3050a9d06e2b5cf75c3d6ba958026bfdf4745f576d6The Android Open Source Project  /*   synthesize on the fly a Unicode charmap from the CFF/Type 1 driver  */
306049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*   through a big table named the `Adobe Glyph List' (AGL).             */
307049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
308049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*   Undefine this macro if you do not want the Adobe Glyph List         */
309049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*   compiled in your `PSNames' module.  The Type 1 driver will not be   */
3100a9d06e2b5cf75c3d6ba958026bfdf4745f576d6The Android Open Source Project  /*   able to synthesize a Unicode charmap out of the glyphs found in the */
311049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*   fonts.                                                              */
312049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
313049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project#define FT_CONFIG_OPTION_ADOBE_GLYPH_LIST
314049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project
315049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project
316049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*************************************************************************/
317049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
318049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /* Support for Mac fonts                                                 */
319049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
320049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*   Define this macro if you want support for outline fonts in Mac      */
321049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*   format (mac dfont, mac resource, macbinary containing a mac         */
322049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*   resource) on non-Mac platforms.                                     */
323049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
324049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*   Note that the `FOND' resource isn't checked.                        */
325049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
326049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project#define FT_CONFIG_OPTION_MAC_FONTS
327049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project
328049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project
329049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*************************************************************************/
330049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
331049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /* Guessing methods to access embedded resource forks                    */
332049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
333049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*   Enable extra Mac fonts support on non-Mac platforms (e.g.           */
334049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*   GNU/Linux).                                                         */
335049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
336049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*   Resource forks which include fonts data are stored sometimes in     */
337049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*   locations which users or developers don't expected.  In some cases, */
338049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*   resource forks start with some offset from the head of a file.  In  */
339049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*   other cases, the actual resource fork is stored in file different   */
340049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*   from what the user specifies.  If this option is activated,         */
341049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*   FreeType tries to guess whether such offsets or different file      */
342049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*   names must be used.                                                 */
343049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
344049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*   Note that normal, direct access of resource forks is controlled via */
345049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*   the FT_CONFIG_OPTION_MAC_FONTS option.                              */
346049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
347049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project#ifdef FT_CONFIG_OPTION_MAC_FONTS
348049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project#define FT_CONFIG_OPTION_GUESSING_EMBEDDED_RFORK
349049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project#endif
350049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project
351049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project
352049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*************************************************************************/
353049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
354049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /* Allow the use of FT_Incremental_Interface to load typefaces that      */
355049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /* contain no glyph data, but supply it via a callback function.         */
356295ffce55e0198e7a9f7d46b33f5c2b4147bf821David 'Digit' Turner  /* This is required by clients supporting document formats which         */
357295ffce55e0198e7a9f7d46b33f5c2b4147bf821David 'Digit' Turner  /* supply font data incrementally as the document is parsed, such        */
358295ffce55e0198e7a9f7d46b33f5c2b4147bf821David 'Digit' Turner  /* as the Ghostscript interpreter for the PostScript language.           */
359049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
360049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project/* #define FT_CONFIG_OPTION_INCREMENTAL */
361049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project
362049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project
363049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*************************************************************************/
364049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
365049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /* The size in bytes of the render pool used by the scan-line converter  */
366049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /* to do all of its work.                                                */
367049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
368049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /* This must be greater than 4KByte if you use FreeType to rasterize     */
369049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /* glyphs; otherwise, you may set it to zero to avoid unnecessary        */
370049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /* allocation of the render pool.                                        */
371049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
372049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project#define FT_RENDER_POOL_SIZE  16384L
373049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project
374049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project
375049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*************************************************************************/
376049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
377049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /* FT_MAX_MODULES                                                        */
378049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
379049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*   The maximum number of modules that can be registered in a single    */
380049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*   FreeType library object.  32 is the default.                        */
381049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
382049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project#define FT_MAX_MODULES  32
383049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project
384049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project
385049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*************************************************************************/
386049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
387049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /* Debug level                                                           */
388049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
389049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*   FreeType can be compiled in debug or trace mode.  In debug mode,    */
390049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*   errors are reported through the `ftdebug' component.  In trace      */
391049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*   mode, additional messages are sent to the standard output during    */
392049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*   execution.                                                          */
393049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
394049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*   Define FT_DEBUG_LEVEL_ERROR to build the library in debug mode.     */
395049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*   Define FT_DEBUG_LEVEL_TRACE to build it in trace mode.              */
396049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
397049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*   Don't define any of these macros to compile in `release' mode!      */
398049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
399049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*   Do not #undef these macros here since the build system might define */
400049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*   them for certain configurations only.                               */
401049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
402049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project/* #define FT_DEBUG_LEVEL_ERROR */
403049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project/* #define FT_DEBUG_LEVEL_TRACE */
404049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project
405049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project
406049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*************************************************************************/
407049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
408c3ee10bfa1f76a18500b487de9c85757375b48f3David 'Digit' Turner  /* Autofitter debugging                                                  */
409c3ee10bfa1f76a18500b487de9c85757375b48f3David 'Digit' Turner  /*                                                                       */
410c3ee10bfa1f76a18500b487de9c85757375b48f3David 'Digit' Turner  /*   If FT_DEBUG_AUTOFIT is defined, FreeType provides some means to     */
411c3ee10bfa1f76a18500b487de9c85757375b48f3David 'Digit' Turner  /*   control the autofitter behaviour for debugging purposes with global */
412c3ee10bfa1f76a18500b487de9c85757375b48f3David 'Digit' Turner  /*   boolean variables (consequently, you should *never* enable this     */
413c3ee10bfa1f76a18500b487de9c85757375b48f3David 'Digit' Turner  /*   while compiling in `release' mode):                                 */
414c3ee10bfa1f76a18500b487de9c85757375b48f3David 'Digit' Turner  /*                                                                       */
415c3ee10bfa1f76a18500b487de9c85757375b48f3David 'Digit' Turner  /*     _af_debug_disable_horz_hints                                      */
416c3ee10bfa1f76a18500b487de9c85757375b48f3David 'Digit' Turner  /*     _af_debug_disable_vert_hints                                      */
417c3ee10bfa1f76a18500b487de9c85757375b48f3David 'Digit' Turner  /*     _af_debug_disable_blue_hints                                      */
418c3ee10bfa1f76a18500b487de9c85757375b48f3David 'Digit' Turner  /*                                                                       */
419c3ee10bfa1f76a18500b487de9c85757375b48f3David 'Digit' Turner  /*   Additionally, the following functions provide dumps of various      */
420c3ee10bfa1f76a18500b487de9c85757375b48f3David 'Digit' Turner  /*   internal autofit structures to stdout (using `printf'):             */
421c3ee10bfa1f76a18500b487de9c85757375b48f3David 'Digit' Turner  /*                                                                       */
422c3ee10bfa1f76a18500b487de9c85757375b48f3David 'Digit' Turner  /*     af_glyph_hints_dump_points                                        */
423c3ee10bfa1f76a18500b487de9c85757375b48f3David 'Digit' Turner  /*     af_glyph_hints_dump_segments                                      */
424c3ee10bfa1f76a18500b487de9c85757375b48f3David 'Digit' Turner  /*     af_glyph_hints_dump_edges                                         */
425c3ee10bfa1f76a18500b487de9c85757375b48f3David 'Digit' Turner  /*                                                                       */
426c3ee10bfa1f76a18500b487de9c85757375b48f3David 'Digit' Turner  /*   As an argument, they use another global variable:                   */
427c3ee10bfa1f76a18500b487de9c85757375b48f3David 'Digit' Turner  /*                                                                       */
428c3ee10bfa1f76a18500b487de9c85757375b48f3David 'Digit' Turner  /*     _af_debug_hints                                                   */
429c3ee10bfa1f76a18500b487de9c85757375b48f3David 'Digit' Turner  /*                                                                       */
430c3ee10bfa1f76a18500b487de9c85757375b48f3David 'Digit' Turner  /*   Please have a look at the `ftgrid' demo program to see how those    */
431c3ee10bfa1f76a18500b487de9c85757375b48f3David 'Digit' Turner  /*   variables and macros should be used.                                */
432c3ee10bfa1f76a18500b487de9c85757375b48f3David 'Digit' Turner  /*                                                                       */
433c3ee10bfa1f76a18500b487de9c85757375b48f3David 'Digit' Turner  /*   Do not #undef these macros here since the build system might define */
434c3ee10bfa1f76a18500b487de9c85757375b48f3David 'Digit' Turner  /*   them for certain configurations only.                               */
435c3ee10bfa1f76a18500b487de9c85757375b48f3David 'Digit' Turner  /*                                                                       */
436c3ee10bfa1f76a18500b487de9c85757375b48f3David 'Digit' Turner/* #define FT_DEBUG_AUTOFIT */
437c3ee10bfa1f76a18500b487de9c85757375b48f3David 'Digit' Turner
438c3ee10bfa1f76a18500b487de9c85757375b48f3David 'Digit' Turner
439c3ee10bfa1f76a18500b487de9c85757375b48f3David 'Digit' Turner  /*************************************************************************/
440c3ee10bfa1f76a18500b487de9c85757375b48f3David 'Digit' Turner  /*                                                                       */
441049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /* Memory Debugging                                                      */
442049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
443049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*   FreeType now comes with an integrated memory debugger that is       */
444049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*   capable of detecting simple errors like memory leaks or double      */
445049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*   deletes.  To compile it within your build of the library, you       */
446049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*   should define FT_DEBUG_MEMORY here.                                 */
447049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
448049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*   Note that the memory debugger is only activated at runtime when     */
449049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*   when the _environment_ variable `FT2_DEBUG_MEMORY' is defined also! */
450049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
451049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*   Do not #undef this macro here since the build system might define   */
452049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*   it for certain configurations only.                                 */
453049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
454049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project/* #define FT_DEBUG_MEMORY */
455049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project
456049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project
457049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*************************************************************************/
458049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
459049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /* Module errors                                                         */
460049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
461049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*   If this macro is set (which is _not_ the default), the higher byte  */
462049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*   of an error code gives the module in which the error has occurred,  */
463049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*   while the lower byte is the real error code.                        */
464049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
465049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*   Setting this macro makes sense for debugging purposes only, since   */
466049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*   it would break source compatibility of certain programs that use    */
467049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*   FreeType 2.                                                         */
468049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
469049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*   More details can be found in the files ftmoderr.h and fterrors.h.   */
470049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
471049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project#undef FT_CONFIG_OPTION_USE_MODULE_ERRORS
472049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project
473049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project
474295ffce55e0198e7a9f7d46b33f5c2b4147bf821David 'Digit' Turner  /*************************************************************************/
475295ffce55e0198e7a9f7d46b33f5c2b4147bf821David 'Digit' Turner  /*                                                                       */
476295ffce55e0198e7a9f7d46b33f5c2b4147bf821David 'Digit' Turner  /* Position Independent Code                                             */
477295ffce55e0198e7a9f7d46b33f5c2b4147bf821David 'Digit' Turner  /*                                                                       */
478295ffce55e0198e7a9f7d46b33f5c2b4147bf821David 'Digit' Turner  /*   If this macro is set (which is _not_ the default), FreeType2 will   */
479295ffce55e0198e7a9f7d46b33f5c2b4147bf821David 'Digit' Turner  /*   avoid creating constants that require address fixups.  Instead the  */
480295ffce55e0198e7a9f7d46b33f5c2b4147bf821David 'Digit' Turner  /*   constants will be moved into a struct and additional intialization  */
481295ffce55e0198e7a9f7d46b33f5c2b4147bf821David 'Digit' Turner  /*   code will be used.                                                  */
482295ffce55e0198e7a9f7d46b33f5c2b4147bf821David 'Digit' Turner  /*                                                                       */
483295ffce55e0198e7a9f7d46b33f5c2b4147bf821David 'Digit' Turner  /*   Setting this macro is needed for systems that prohibit address      */
484295ffce55e0198e7a9f7d46b33f5c2b4147bf821David 'Digit' Turner  /*   fixups, such as BREW.                                               */
485295ffce55e0198e7a9f7d46b33f5c2b4147bf821David 'Digit' Turner  /*                                                                       */
486295ffce55e0198e7a9f7d46b33f5c2b4147bf821David 'Digit' Turner/* #define FT_CONFIG_OPTION_PIC */
487295ffce55e0198e7a9f7d46b33f5c2b4147bf821David 'Digit' Turner
488049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project
489049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*************************************************************************/
490049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*************************************************************************/
491049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /****                                                                 ****/
492049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /****        S F N T   D R I V E R    C O N F I G U R A T I O N       ****/
493049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /****                                                                 ****/
494049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*************************************************************************/
495049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*************************************************************************/
496049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project
497049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project
498049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*************************************************************************/
499049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
500049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /* Define TT_CONFIG_OPTION_EMBEDDED_BITMAPS if you want to support       */
501049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /* embedded bitmaps in all formats using the SFNT module (namely         */
502049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /* TrueType & OpenType).                                                 */
503049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
504049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project#define TT_CONFIG_OPTION_EMBEDDED_BITMAPS
505049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project
506049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project
507049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*************************************************************************/
508049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
509049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /* Define TT_CONFIG_OPTION_POSTSCRIPT_NAMES if you want to be able to    */
510049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /* load and enumerate the glyph Postscript names in a TrueType or        */
511049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /* OpenType file.                                                        */
512049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
513049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /* Note that when you do not compile the `PSNames' module by undefining  */
514049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /* the above FT_CONFIG_OPTION_POSTSCRIPT_NAMES, the `sfnt' module will   */
515049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /* contain additional code used to read the PS Names table from a font.  */
516049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
517049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /* (By default, the module uses `PSNames' to extract glyph names.)       */
518049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
519049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project#define TT_CONFIG_OPTION_POSTSCRIPT_NAMES
520049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project
521049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project
522049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*************************************************************************/
523049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
524049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /* Define TT_CONFIG_OPTION_SFNT_NAMES if your applications need to       */
525049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /* access the internal name table in a SFNT-based format like TrueType   */
526049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /* or OpenType.  The name table contains various strings used to         */
527049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /* describe the font, like family name, copyright, version, etc.  It     */
528049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /* does not contain any glyph name though.                               */
529049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
530049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /* Accessing SFNT names is done through the functions declared in        */
531295ffce55e0198e7a9f7d46b33f5c2b4147bf821David 'Digit' Turner  /* `freetype/ftsnames.h'.                                                */
532049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
533049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project#define TT_CONFIG_OPTION_SFNT_NAMES
534049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project
535049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project
536049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*************************************************************************/
537049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
538049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /* TrueType CMap support                                                 */
539049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
540049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*   Here you can fine-tune which TrueType CMap table format shall be    */
541049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*   supported.                                                          */
542049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project#define TT_CONFIG_CMAP_FORMAT_0
543049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project#define TT_CONFIG_CMAP_FORMAT_2
544049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project#define TT_CONFIG_CMAP_FORMAT_4
545049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project#define TT_CONFIG_CMAP_FORMAT_6
546049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project#define TT_CONFIG_CMAP_FORMAT_8
547049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project#define TT_CONFIG_CMAP_FORMAT_10
548049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project#define TT_CONFIG_CMAP_FORMAT_12
549295ffce55e0198e7a9f7d46b33f5c2b4147bf821David 'Digit' Turner#define TT_CONFIG_CMAP_FORMAT_13
550049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project#define TT_CONFIG_CMAP_FORMAT_14
551049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project
552049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project
553049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*************************************************************************/
554049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*************************************************************************/
555049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /****                                                                 ****/
556049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /****    T R U E T Y P E   D R I V E R    C O N F I G U R A T I O N   ****/
557049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /****                                                                 ****/
558049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*************************************************************************/
559049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*************************************************************************/
560049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project
561049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*************************************************************************/
562049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
563049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /* Define TT_CONFIG_OPTION_BYTECODE_INTERPRETER if you want to compile   */
564aacb8e1368a883fcbc9fe64fd0e460cef9c9b20cNick Kralevich  /* a bytecode interpreter in the TrueType driver.                        */
565049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
566049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /* By undefining this, you will only compile the code necessary to load  */
567049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /* TrueType glyphs without hinting.                                      */
568049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
569049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*   Do not #undef this macro here, since the build system might         */
570049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*   define it for certain configurations only.                          */
571049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
572049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project/* #define TT_CONFIG_OPTION_BYTECODE_INTERPRETER */
573049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project
574049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project
575049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*************************************************************************/
576049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
577a2b9955b49034a51dfbc8bf9f4e9d312149cecacXianzhu Wang  /* Define TT_CONFIG_OPTION_SUBPIXEL_HINTING if you want to compile       */
578a2b9955b49034a51dfbc8bf9f4e9d312149cecacXianzhu Wang  /* EXPERIMENTAL subpixel hinting support into the TrueType driver.  This */
579a2b9955b49034a51dfbc8bf9f4e9d312149cecacXianzhu Wang  /* replaces the native TrueType hinting mechanism when anything but      */
580a2b9955b49034a51dfbc8bf9f4e9d312149cecacXianzhu Wang  /* FT_RENDER_MODE_MONO is requested.                                     */
581a2b9955b49034a51dfbc8bf9f4e9d312149cecacXianzhu Wang  /*                                                                       */
582a2b9955b49034a51dfbc8bf9f4e9d312149cecacXianzhu Wang  /* Enabling this causes the TrueType driver to ignore instructions under */
583a2b9955b49034a51dfbc8bf9f4e9d312149cecacXianzhu Wang  /* certain conditions.  This is done in accordance with the guide here,  */
584a2b9955b49034a51dfbc8bf9f4e9d312149cecacXianzhu Wang  /* with some minor differences:                                          */
585a2b9955b49034a51dfbc8bf9f4e9d312149cecacXianzhu Wang  /*                                                                       */
586a2b9955b49034a51dfbc8bf9f4e9d312149cecacXianzhu Wang  /*  http://www.microsoft.com/typography/cleartype/truetypecleartype.aspx */
587a2b9955b49034a51dfbc8bf9f4e9d312149cecacXianzhu Wang  /*                                                                       */
588a2b9955b49034a51dfbc8bf9f4e9d312149cecacXianzhu Wang  /* By undefining this, you only compile the code necessary to hint       */
589a2b9955b49034a51dfbc8bf9f4e9d312149cecacXianzhu Wang  /* TrueType glyphs with native TT hinting.                               */
590a2b9955b49034a51dfbc8bf9f4e9d312149cecacXianzhu Wang  /*                                                                       */
591a2b9955b49034a51dfbc8bf9f4e9d312149cecacXianzhu Wang  /*   This option requires TT_CONFIG_OPTION_BYTECODE_INTERPRETER to be    */
592a2b9955b49034a51dfbc8bf9f4e9d312149cecacXianzhu Wang  /*   defined.                                                            */
593a2b9955b49034a51dfbc8bf9f4e9d312149cecacXianzhu Wang  /*                                                                       */
594a2b9955b49034a51dfbc8bf9f4e9d312149cecacXianzhu Wang/* #define TT_CONFIG_OPTION_SUBPIXEL_HINTING */
595a2b9955b49034a51dfbc8bf9f4e9d312149cecacXianzhu Wang
596a2b9955b49034a51dfbc8bf9f4e9d312149cecacXianzhu Wang
597a2b9955b49034a51dfbc8bf9f4e9d312149cecacXianzhu Wang  /*************************************************************************/
598a2b9955b49034a51dfbc8bf9f4e9d312149cecacXianzhu Wang  /*                                                                       */
599049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /* If you define TT_CONFIG_OPTION_UNPATENTED_HINTING, a special version  */
600049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /* of the TrueType bytecode interpreter is used that doesn't implement   */
601c3ee10bfa1f76a18500b487de9c85757375b48f3David 'Digit' Turner  /* any of the patented opcodes and algorithms.  The patents related to   */
602c3ee10bfa1f76a18500b487de9c85757375b48f3David 'Digit' Turner  /* TrueType hinting have expired worldwide since May 2010; this option   */
603c3ee10bfa1f76a18500b487de9c85757375b48f3David 'Digit' Turner  /* is now deprecated.                                                    */
604c3ee10bfa1f76a18500b487de9c85757375b48f3David 'Digit' Turner  /*                                                                       */
605c3ee10bfa1f76a18500b487de9c85757375b48f3David 'Digit' Turner  /* Note that the TT_CONFIG_OPTION_UNPATENTED_HINTING macro is *ignored*  */
606c3ee10bfa1f76a18500b487de9c85757375b48f3David 'Digit' Turner  /* if you define TT_CONFIG_OPTION_BYTECODE_INTERPRETER; in other words,  */
607c3ee10bfa1f76a18500b487de9c85757375b48f3David 'Digit' Turner  /* either define TT_CONFIG_OPTION_BYTECODE_INTERPRETER or                */
608049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /* TT_CONFIG_OPTION_UNPATENTED_HINTING but not both at the same time.    */
609049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
610049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /* This macro is only useful for a small number of font files (mostly    */
611049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /* for Asian scripts) that require bytecode interpretation to properly   */
612049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /* load glyphs.  For all other fonts, this produces unpleasant results,  */
613049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /* thus the unpatented interpreter is never used to load glyphs from     */
614049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /* TrueType fonts unless one of the following two options is used.       */
615049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
616049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*   - The unpatented interpreter is explicitly activated by the user    */
617049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*     through the FT_PARAM_TAG_UNPATENTED_HINTING parameter tag         */
618049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*     when opening the FT_Face.                                         */
619049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
620049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*   - FreeType detects that the FT_Face corresponds to one of the       */
621049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*     `trick' fonts (e.g., `Mingliu') it knows about.  The font engine  */
622049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*     contains a hard-coded list of font names and other matching       */
623049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*     parameters (see function `tt_face_init' in file                   */
624049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*     `src/truetype/ttobjs.c').                                         */
625049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
626049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /* Here a sample code snippet for using FT_PARAM_TAG_UNPATENTED_HINTING. */
627049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
628049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*   {                                                                   */
629049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*     FT_Parameter  parameter;                                          */
630049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*     FT_Open_Args  open_args;                                          */
631049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
632049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
633049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*     parameter.tag = FT_PARAM_TAG_UNPATENTED_HINTING;                  */
634049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
635049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*     open_args.flags      = FT_OPEN_PATHNAME | FT_OPEN_PARAMS;         */
636049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*     open_args.pathname   = my_font_pathname;                          */
637049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*     open_args.num_params = 1;                                         */
638049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*     open_args.params     = &parameter;                                */
639049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
640049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*     error = FT_Open_Face( library, &open_args, index, &face );        */
641049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*     ...                                                               */
642049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*   }                                                                   */
643049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
644049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project#define TT_CONFIG_OPTION_UNPATENTED_HINTING
645049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project
646049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project
647049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*************************************************************************/
648049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
649049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /* Define TT_CONFIG_OPTION_INTERPRETER_SWITCH to compile the TrueType    */
650049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /* bytecode interpreter with a huge switch statement, rather than a call */
651049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /* table.  This results in smaller and faster code for a number of       */
652049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /* architectures.                                                        */
653049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
654049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /* Note however that on some compiler/processor combinations, undefining */
655049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /* this macro will generate faster, though larger, code.                 */
656049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
657049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project#define TT_CONFIG_OPTION_INTERPRETER_SWITCH
658049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project
659049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project
660049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*************************************************************************/
661049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
662049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /* Define TT_CONFIG_OPTION_COMPONENT_OFFSET_SCALED to compile the        */
663049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /* TrueType glyph loader to use Apple's definition of how to handle      */
664049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /* component offsets in composite glyphs.                                */
665049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
666049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /* Apple and MS disagree on the default behavior of component offsets    */
667049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /* in composites.  Apple says that they should be scaled by the scaling  */
668049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /* factors in the transformation matrix (roughly, it's more complex)     */
669049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /* while MS says they should not.  OpenType defines two bits in the      */
670049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /* composite flags array which can be used to disambiguate, but old      */
671049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /* fonts will not have them.                                             */
672049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
673c3ee10bfa1f76a18500b487de9c85757375b48f3David 'Digit' Turner  /*   http://www.microsoft.com/typography/otspec/glyf.htm                 */
674049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*   http://fonts.apple.com/TTRefMan/RM06/Chap6glyf.html                 */
675049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
676049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project#undef TT_CONFIG_OPTION_COMPONENT_OFFSET_SCALED
677049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project
678049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project
679049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*************************************************************************/
680049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
681049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /* Define TT_CONFIG_OPTION_GX_VAR_SUPPORT if you want to include         */
682049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /* support for Apple's distortable font technology (fvar, gvar, cvar,    */
683049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /* and avar tables).  This has many similarities to Type 1 Multiple      */
684049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /* Masters support.                                                      */
685049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
686049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project#define TT_CONFIG_OPTION_GX_VAR_SUPPORT
687049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project
688049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project
689049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*************************************************************************/
690049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
691049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /* Define TT_CONFIG_OPTION_BDF if you want to include support for        */
692049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /* an embedded `BDF ' table within SFNT-based bitmap formats.            */
693049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
694049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project#define TT_CONFIG_OPTION_BDF
695049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project
696049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project
697049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*************************************************************************/
698049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*************************************************************************/
699049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /****                                                                 ****/
700049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /****      T Y P E 1   D R I V E R    C O N F I G U R A T I O N       ****/
701049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /****                                                                 ****/
702049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*************************************************************************/
703049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*************************************************************************/
704049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project
705049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project
706049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*************************************************************************/
707049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
708a2b9955b49034a51dfbc8bf9f4e9d312149cecacXianzhu Wang  /* T1_MAX_DICT_DEPTH is the maximum depth of nest dictionaries and       */
709049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /* arrays in the Type 1 stream (see t1load.c).  A minimum of 4 is        */
710049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /* required.                                                             */
711049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
712049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project#define T1_MAX_DICT_DEPTH  5
713049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project
714049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project
715049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*************************************************************************/
716049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
717049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /* T1_MAX_SUBRS_CALLS details the maximum number of nested sub-routine   */
718049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /* calls during glyph loading.                                           */
719049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
720049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project#define T1_MAX_SUBRS_CALLS  16
721049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project
722049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project
723049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*************************************************************************/
724049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
725049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /* T1_MAX_CHARSTRING_OPERANDS is the charstring stack's capacity.  A     */
726049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /* minimum of 16 is required.                                            */
727049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
728049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /* The Chinese font MingTiEG-Medium (CNS 11643 character set) needs 256. */
729049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
730049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project#define T1_MAX_CHARSTRINGS_OPERANDS  256
731049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project
732049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project
733049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*************************************************************************/
734049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
735049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /* Define this configuration macro if you want to prevent the            */
736049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /* compilation of `t1afm', which is in charge of reading Type 1 AFM      */
737049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /* files into an existing face.  Note that if set, the T1 driver will be */
738049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /* unable to produce kerning distances.                                  */
739049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
740049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project#undef T1_CONFIG_OPTION_NO_AFM
741049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project
742049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project
743049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*************************************************************************/
744049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
745049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /* Define this configuration macro if you want to prevent the            */
746049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /* compilation of the Multiple Masters font support in the Type 1        */
747049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /* driver.                                                               */
748049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
749049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project#undef T1_CONFIG_OPTION_NO_MM_SUPPORT
750049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project
751049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project
752049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*************************************************************************/
753049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*************************************************************************/
754049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /****                                                                 ****/
755a2b9955b49034a51dfbc8bf9f4e9d312149cecacXianzhu Wang  /****         C F F   D R I V E R    C O N F I G U R A T I O N        ****/
756a2b9955b49034a51dfbc8bf9f4e9d312149cecacXianzhu Wang  /****                                                                 ****/
757a2b9955b49034a51dfbc8bf9f4e9d312149cecacXianzhu Wang  /*************************************************************************/
758a2b9955b49034a51dfbc8bf9f4e9d312149cecacXianzhu Wang  /*************************************************************************/
759a2b9955b49034a51dfbc8bf9f4e9d312149cecacXianzhu Wang
760a2b9955b49034a51dfbc8bf9f4e9d312149cecacXianzhu Wang
761a2b9955b49034a51dfbc8bf9f4e9d312149cecacXianzhu Wang  /*************************************************************************/
762a2b9955b49034a51dfbc8bf9f4e9d312149cecacXianzhu Wang  /*                                                                       */
763a2b9955b49034a51dfbc8bf9f4e9d312149cecacXianzhu Wang  /* CFF_CONFIG_OPTION_OLD_ENGINE controls whether the pre-Adobe CFF       */
764a2b9955b49034a51dfbc8bf9f4e9d312149cecacXianzhu Wang  /* engine gets compiled into FreeType.  If defined, it is possible to    */
765a2b9955b49034a51dfbc8bf9f4e9d312149cecacXianzhu Wang  /* switch between the two engines using the `hinting-engine' property of */
766a2b9955b49034a51dfbc8bf9f4e9d312149cecacXianzhu Wang  /* the cff driver module.                                                */
767a2b9955b49034a51dfbc8bf9f4e9d312149cecacXianzhu Wang  /*                                                                       */
768a2b9955b49034a51dfbc8bf9f4e9d312149cecacXianzhu Wang/* #define CFF_CONFIG_OPTION_OLD_ENGINE */
769a2b9955b49034a51dfbc8bf9f4e9d312149cecacXianzhu Wang
770a2b9955b49034a51dfbc8bf9f4e9d312149cecacXianzhu Wang
771a2b9955b49034a51dfbc8bf9f4e9d312149cecacXianzhu Wang  /*************************************************************************/
772a2b9955b49034a51dfbc8bf9f4e9d312149cecacXianzhu Wang  /*************************************************************************/
773a2b9955b49034a51dfbc8bf9f4e9d312149cecacXianzhu Wang  /****                                                                 ****/
774049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /****    A U T O F I T   M O D U L E    C O N F I G U R A T I O N     ****/
775049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /****                                                                 ****/
776049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*************************************************************************/
777049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*************************************************************************/
778049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project
779049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project
780049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*************************************************************************/
781049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
782049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /* Compile autofit module with CJK (Chinese, Japanese, Korean) script    */
783049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /* support.                                                              */
784049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
785049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project#define AF_CONFIG_OPTION_CJK
786049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project
787049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*************************************************************************/
788049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
789049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /* Compile autofit module with Indic script support.                     */
790049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*                                                                       */
791049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project#define AF_CONFIG_OPTION_INDIC
792049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project
793c3ee10bfa1f76a18500b487de9c85757375b48f3David 'Digit' Turner  /*************************************************************************/
794c3ee10bfa1f76a18500b487de9c85757375b48f3David 'Digit' Turner  /*                                                                       */
795c3ee10bfa1f76a18500b487de9c85757375b48f3David 'Digit' Turner  /* Compile autofit module with warp hinting.  The idea of the warping    */
796c3ee10bfa1f76a18500b487de9c85757375b48f3David 'Digit' Turner  /* code is to slightly scale and shift a glyph within a single dimension */
797c3ee10bfa1f76a18500b487de9c85757375b48f3David 'Digit' Turner  /* so that as much of its segments are aligned (more or less) on the     */
798c3ee10bfa1f76a18500b487de9c85757375b48f3David 'Digit' Turner  /* grid.  To find out the optimal scaling and shifting value, various    */
799c3ee10bfa1f76a18500b487de9c85757375b48f3David 'Digit' Turner  /* parameter combinations are tried and scored.                          */
800c3ee10bfa1f76a18500b487de9c85757375b48f3David 'Digit' Turner  /*                                                                       */
801c3ee10bfa1f76a18500b487de9c85757375b48f3David 'Digit' Turner  /* This experimental option is only active if the render mode is         */
802c3ee10bfa1f76a18500b487de9c85757375b48f3David 'Digit' Turner  /* FT_RENDER_MODE_LIGHT.                                                 */
803c3ee10bfa1f76a18500b487de9c85757375b48f3David 'Digit' Turner  /*                                                                       */
804c3ee10bfa1f76a18500b487de9c85757375b48f3David 'Digit' Turner/* #define AF_CONFIG_OPTION_USE_WARPER */
805c3ee10bfa1f76a18500b487de9c85757375b48f3David 'Digit' Turner
806049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /* */
807049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project
808049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project
809049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project  /*
810a2b9955b49034a51dfbc8bf9f4e9d312149cecacXianzhu Wang   *  This macro is obsolete.  Support has been removed in FreeType
811a2b9955b49034a51dfbc8bf9f4e9d312149cecacXianzhu Wang   *  version 2.5.
812049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project   */
813a2b9955b49034a51dfbc8bf9f4e9d312149cecacXianzhu Wang/* #define FT_CONFIG_OPTION_OLD_INTERNALS */
814aacb8e1368a883fcbc9fe64fd0e460cef9c9b20cNick Kralevich
815aacb8e1368a883fcbc9fe64fd0e460cef9c9b20cNick Kralevich
816aacb8e1368a883fcbc9fe64fd0e460cef9c9b20cNick Kralevich  /*
8170a9d06e2b5cf75c3d6ba958026bfdf4745f576d6The Android Open Source Project   * This macro is defined if either unpatented or native TrueType
818049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project   * hinting is requested by the definitions above.
819049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project   */
820049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project#ifdef TT_CONFIG_OPTION_BYTECODE_INTERPRETER
821049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project#define  TT_USE_BYTECODE_INTERPRETER
8220a9d06e2b5cf75c3d6ba958026bfdf4745f576d6The Android Open Source Project#undef   TT_CONFIG_OPTION_UNPATENTED_HINTING
823049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project#elif defined TT_CONFIG_OPTION_UNPATENTED_HINTING
824049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project#define  TT_USE_BYTECODE_INTERPRETER
825049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project#endif
826049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project
827049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source ProjectFT_END_HEADER
828049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project
829049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project
830049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project#endif /* __FTOPTION_H__ */
831049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project
832049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project
833049d6fea481044fcc000e7782e5bc7046fc70844The Android Open Source Project/* END */
834