12e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com/***************************************************************************/
22e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com/*                                                                         */
32e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com/*  ftoption.h                                                             */
42e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com/*                                                                         */
52e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com/*    User-selectable configuration macros (specification only).           */
62e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com/*                                                                         */
72e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com/*  Copyright 1996-2013 by                                                 */
82e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com/*  David Turner, Robert Wilhelm, and Werner Lemberg.                      */
92e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com/*                                                                         */
102e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com/*  This file is part of the FreeType project, and may only be used,       */
112e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com/*  modified, and distributed under the terms of the FreeType project      */
122e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com/*  license, LICENSE.TXT.  By continuing to use, modify, or distribute     */
132e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com/*  this file you indicate that you have read the license and              */
142e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com/*  understand and accept it fully.                                        */
152e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com/*                                                                         */
162e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com/***************************************************************************/
172e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
182e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
192e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com#ifndef __FTOPTION_H__
202e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com#define __FTOPTION_H__
212e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
222e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
232e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com#include <ft2build.h>
242e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
252e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
262e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.comFT_BEGIN_HEADER
272e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
282e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*************************************************************************/
292e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
302e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                 USER-SELECTABLE CONFIGURATION MACROS                  */
312e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
322e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* This file contains the default configuration macro definitions for    */
332e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* a standard build of the FreeType library.  There are three ways to    */
342e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* use this file to build project-specific versions of the library:      */
352e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
362e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*  - You can modify this file by hand, but this is not recommended in   */
372e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*    cases where you would like to build several versions of the        */
382e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*    library from a single source directory.                            */
392e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
402e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*  - You can put a copy of this file in your build directory, more      */
412e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*    precisely in `$BUILD/freetype/config/ftoption.h', where `$BUILD'   */
422e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*    is the name of a directory that is included _before_ the FreeType  */
432e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*    include path during compilation.                                   */
442e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
452e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*    The default FreeType Makefiles and Jamfiles use the build          */
462e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*    directory `builds/<system>' by default, but you can easily change  */
472e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*    that for your own projects.                                        */
482e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
492e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*  - Copy the file <ft2build.h> to `$BUILD/ft2build.h' and modify it    */
502e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*    slightly to pre-define the macro FT_CONFIG_OPTIONS_H used to       */
512e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*    locate this file during the build.  For example,                   */
522e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
532e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*      #define FT_CONFIG_OPTIONS_H  <myftoptions.h>                     */
542e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*      #include <freetype/config/ftheader.h>                            */
552e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
562e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*    will use `$BUILD/myftoptions.h' instead of this file for macro     */
572e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*    definitions.                                                       */
582e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
592e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*    Note also that you can similarly pre-define the macro              */
602e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*    FT_CONFIG_MODULES_H used to locate the file listing of the modules */
612e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*    that are statically linked to the library at compile time.  By     */
622e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*    default, this file is <freetype/config/ftmodule.h>.                */
632e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
642e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*  We highly recommend using the third method whenever possible.        */
652e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
662e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*************************************************************************/
672e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
682e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
692e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*************************************************************************/
702e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*************************************************************************/
712e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /****                                                                 ****/
722e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /**** 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 ****/
732e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /****                                                                 ****/
742e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*************************************************************************/
752e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*************************************************************************/
762e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
772e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
782e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*************************************************************************/
792e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
802e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* Uncomment the line below if you want to activate sub-pixel rendering  */
812e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* (a.k.a. LCD rendering, or ClearType) in this build of the library.    */
822e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
832e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* Note that this feature is covered by several Microsoft patents        */
842e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* and should not be activated in any default build of the library.      */
852e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
862e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* This macro has no impact on the FreeType API, only on its             */
872e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* _implementation_.  For example, using FT_RENDER_MODE_LCD when calling */
882e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* FT_Render_Glyph still generates a bitmap that is 3 times wider than   */
892e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* the original size in case this macro isn't defined; however, each     */
902e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* triplet of subpixels has R=G=B.                                       */
912e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
922e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* This is done to allow FreeType clients to run unmodified, forcing     */
932e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* them to display normal gray-level anti-aliased glyphs.                */
942e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
952e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com/* #define FT_CONFIG_OPTION_SUBPIXEL_RENDERING */
962e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
972e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
982e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*************************************************************************/
992e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
1002e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* Many compilers provide a non-ANSI 64-bit data type that can be used   */
1012e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* by FreeType to speed up some computations.  However, this will create */
1022e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* some problems when compiling the library in strict ANSI mode.         */
1032e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
1042e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* For this reason, the use of 64-bit integers is normally disabled when */
1052e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* the __STDC__ macro is defined.  You can however disable this by       */
1062e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* defining the macro FT_CONFIG_OPTION_FORCE_INT64 here.                 */
1072e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
1082e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* For most compilers, this will only create compilation warnings when   */
1092e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* building the library.                                                 */
1102e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
1112e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* ObNote: The compiler-specific 64-bit integers are detected in the     */
1122e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*         file `ftconfig.h' either statically or through the            */
1132e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*         `configure' script on supported platforms.                    */
1142e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
1152e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com#undef FT_CONFIG_OPTION_FORCE_INT64
1162e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
1172e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
1182e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*************************************************************************/
1192e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
1202e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* If this macro is defined, do not try to use an assembler version of   */
1212e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* performance-critical functions (e.g. FT_MulFix).  You should only do  */
1222e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* that to verify that the assembler function works properly, or to      */
1232e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* execute benchmark tests of the various implementations.               */
1242e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com/* #define FT_CONFIG_OPTION_NO_ASSEMBLER */
1252e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
1262e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
1272e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*************************************************************************/
1282e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
1292e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* If this macro is defined, try to use an inlined assembler version of  */
1302e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* the `FT_MulFix' function, which is a `hotspot' when loading and       */
1312e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* hinting glyphs, and which should be executed as fast as possible.     */
1322e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
1332e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* Note that if your compiler or CPU is not supported, this will default */
1342e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* to the standard and portable implementation found in `ftcalc.c'.      */
1352e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
1362e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com#define FT_CONFIG_OPTION_INLINE_MULFIX
1372e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
1382e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
1392e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*************************************************************************/
1402e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
1412e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* LZW-compressed file support.                                          */
1422e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
1432e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   FreeType now handles font files that have been compressed with the  */
1442e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   `compress' program.  This is mostly used to parse many of the PCF   */
1452e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   files that come with various X11 distributions.  The implementation */
1462e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   uses NetBSD's `zopen' to partially uncompress the file on the fly   */
1472e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   (see src/lzw/ftgzip.c).                                             */
1482e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
1492e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   Define this macro if you want to enable this `feature'.             */
1502e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
1512e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com#define FT_CONFIG_OPTION_USE_LZW
1522e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
1532e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
1542e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*************************************************************************/
1552e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
1562e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* Gzip-compressed file support.                                         */
1572e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
1582e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   FreeType now handles font files that have been compressed with the  */
1592e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   `gzip' program.  This is mostly used to parse many of the PCF files */
1602e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   that come with XFree86.  The implementation uses `zlib' to          */
1612e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   partially uncompress the file on the fly (see src/gzip/ftgzip.c).   */
1622e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
1632e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   Define this macro if you want to enable this `feature'.  See also   */
1642e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   the macro FT_CONFIG_OPTION_SYSTEM_ZLIB below.                       */
1652e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
1662e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com#define FT_CONFIG_OPTION_USE_ZLIB
1672e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
1682e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
1692e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*************************************************************************/
1702e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
1712e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* ZLib library selection                                                */
1722e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
1732e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   This macro is only used when FT_CONFIG_OPTION_USE_ZLIB is defined.  */
1742e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   It allows FreeType's `ftgzip' component to link to the system's     */
1752e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   installation of the ZLib library.  This is useful on systems like   */
1762e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   Unix or VMS where it generally is already available.                */
1772e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
1782e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   If you let it undefined, the component will use its own copy        */
1792e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   of the zlib sources instead.  These have been modified to be        */
1802e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   included directly within the component and *not* export external    */
1812e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   function names.  This allows you to link any program with FreeType  */
1822e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   _and_ ZLib without linking conflicts.                               */
1832e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
1842e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   Do not #undef this macro here since the build system might define   */
1852e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   it for certain configurations only.                                 */
1862e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
1872e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com/* #define FT_CONFIG_OPTION_SYSTEM_ZLIB */
1882e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
1892e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
1902e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*************************************************************************/
1912e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
1922e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* Bzip2-compressed file support.                                        */
1932e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
1942e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   FreeType now handles font files that have been compressed with the  */
1952e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   `bzip2' program.  This is mostly used to parse many of the PCF      */
1962e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   files that come with XFree86.  The implementation uses `libbz2' to  */
1972e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   partially uncompress the file on the fly (see src/bzip2/ftbzip2.c). */
1982e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   Contrary to gzip, bzip2 currently is not included and need to use   */
1992e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   the system available bzip2 implementation.                          */
2002e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
2012e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   Define this macro if you want to enable this `feature'.             */
2022e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
2032e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com/* #define FT_CONFIG_OPTION_USE_BZIP2 */
2042e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
2052e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
2062e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*************************************************************************/
2072e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
2082e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* Define to disable the use of file stream functions and types, FILE,   */
2092e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* fopen() etc.  Enables the use of smaller system libraries on embedded */
2102e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* systems that have multiple system libraries, some with or without     */
2112e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* file stream support, in the cases where file stream support is not    */
2122e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* necessary such as memory loading of font files.                       */
2132e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
2142e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com/* #define FT_CONFIG_OPTION_DISABLE_STREAM_SUPPORT */
2152e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
2162e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
2172e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*************************************************************************/
2182e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
2192e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*  PNG bitmap support.                                                  */
2202e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
2212e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   FreeType now handles loading color bitmap glyphs in the PNG format. */
2222e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   This requires help from the external libpng library.  Uncompressed  */
2232e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   color bitmaps do not need any external libraries and will be        */
2242e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   supported regardless of this configuration.                         */
2252e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
2262e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   Define this macro if you want to enable this `feature'.             */
2272e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
2282e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com#define FT_CONFIG_OPTION_USE_PNG
2292e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
2302e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
2312e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*************************************************************************/
2322e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
2332e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* DLL export compilation                                                */
2342e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
2352e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   When compiling FreeType as a DLL, some systems/compilers need a     */
2362e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   special keyword in front OR after the return type of function       */
2372e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   declarations.                                                       */
2382e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
2392e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   Two macros are used within the FreeType source code to define       */
2402e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   exported library functions: FT_EXPORT and FT_EXPORT_DEF.            */
2412e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
2422e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*     FT_EXPORT( return_type )                                          */
2432e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
2442e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*       is used in a function declaration, as in                        */
2452e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
2462e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*         FT_EXPORT( FT_Error )                                         */
2472e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*         FT_Init_FreeType( FT_Library*  alibrary );                    */
2482e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
2492e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
2502e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*     FT_EXPORT_DEF( return_type )                                      */
2512e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
2522e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*       is used in a function definition, as in                         */
2532e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
2542e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*         FT_EXPORT_DEF( FT_Error )                                     */
2552e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*         FT_Init_FreeType( FT_Library*  alibrary )                     */
2562e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*         {                                                             */
2572e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*           ... some code ...                                           */
2582e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*           return FT_Err_Ok;                                           */
2592e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*         }                                                             */
2602e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
2612e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   You can provide your own implementation of FT_EXPORT and            */
2622e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   FT_EXPORT_DEF here if you want.  If you leave them undefined, they  */
2632e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   will be later automatically defined as `extern return_type' to      */
2642e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   allow normal compilation.                                           */
2652e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
2662e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   Do not #undef these macros here since the build system might define */
2672e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   them for certain configurations only.                               */
2682e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
2692e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com/* #define FT_EXPORT(x)      extern x */
2702e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com/* #define FT_EXPORT_DEF(x)  x */
2712e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
2722e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
2732e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*************************************************************************/
2742e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
2752e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* Glyph Postscript Names handling                                       */
2762e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
2772e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   By default, FreeType 2 is compiled with the `psnames' module.  This */
2782e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   module is in charge of converting a glyph name string into a        */
2792e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   Unicode value, or return a Macintosh standard glyph name for the    */
2802e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   use with the TrueType `post' table.                                 */
2812e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
2822e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   Undefine this macro if you do not want `psnames' compiled in your   */
2832e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   build of FreeType.  This has the following effects:                 */
2842e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
2852e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   - The TrueType driver will provide its own set of glyph names,      */
2862e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*     if you build it to support postscript names in the TrueType       */
2872e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*     `post' table.                                                     */
2882e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
2892e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   - The Type 1 driver will not be able to synthesize a Unicode        */
2902e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*     charmap out of the glyphs found in the fonts.                     */
2912e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
2922e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   You would normally undefine this configuration macro when building  */
2932e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   a version of FreeType that doesn't contain a Type 1 or CFF driver.  */
2942e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
2952e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com#define FT_CONFIG_OPTION_POSTSCRIPT_NAMES
2962e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
2972e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
2982e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*************************************************************************/
2992e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
3002e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* Postscript Names to Unicode Values support                            */
3012e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
3022e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   By default, FreeType 2 is built with the `PSNames' module compiled  */
3032e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   in.  Among other things, the module is used to convert a glyph name */
3042e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   into a Unicode value.  This is especially useful in order to        */
3052e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   synthesize on the fly a Unicode charmap from the CFF/Type 1 driver  */
3062e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   through a big table named the `Adobe Glyph List' (AGL).             */
3072e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
3082e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   Undefine this macro if you do not want the Adobe Glyph List         */
3092e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   compiled in your `PSNames' module.  The Type 1 driver will not be   */
3102e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   able to synthesize a Unicode charmap out of the glyphs found in the */
3112e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   fonts.                                                              */
3122e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
3132e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com#define FT_CONFIG_OPTION_ADOBE_GLYPH_LIST
3142e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
3152e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
3162e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*************************************************************************/
3172e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
3182e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* Support for Mac fonts                                                 */
3192e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
3202e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   Define this macro if you want support for outline fonts in Mac      */
3212e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   format (mac dfont, mac resource, macbinary containing a mac         */
3222e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   resource) on non-Mac platforms.                                     */
3232e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
3242e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   Note that the `FOND' resource isn't checked.                        */
3252e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
3262e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com#define FT_CONFIG_OPTION_MAC_FONTS
3272e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
3282e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
3292e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*************************************************************************/
3302e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
3312e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* Guessing methods to access embedded resource forks                    */
3322e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
3332e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   Enable extra Mac fonts support on non-Mac platforms (e.g.           */
3342e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   GNU/Linux).                                                         */
3352e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
3362e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   Resource forks which include fonts data are stored sometimes in     */
3372e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   locations which users or developers don't expected.  In some cases, */
3382e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   resource forks start with some offset from the head of a file.  In  */
3392e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   other cases, the actual resource fork is stored in file different   */
3402e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   from what the user specifies.  If this option is activated,         */
3412e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   FreeType tries to guess whether such offsets or different file      */
3422e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   names must be used.                                                 */
3432e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
3442e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   Note that normal, direct access of resource forks is controlled via */
3452e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   the FT_CONFIG_OPTION_MAC_FONTS option.                              */
3462e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
3472e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com#ifdef FT_CONFIG_OPTION_MAC_FONTS
3482e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com#define FT_CONFIG_OPTION_GUESSING_EMBEDDED_RFORK
3492e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com#endif
3502e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
3512e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
3522e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*************************************************************************/
3532e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
3542e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* Allow the use of FT_Incremental_Interface to load typefaces that      */
3552e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* contain no glyph data, but supply it via a callback function.         */
3562e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* This is required by clients supporting document formats which         */
3572e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* supply font data incrementally as the document is parsed, such        */
3582e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* as the Ghostscript interpreter for the PostScript language.           */
3592e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
3602e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com#define FT_CONFIG_OPTION_INCREMENTAL
3612e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
3622e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
3632e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*************************************************************************/
3642e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
3652e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* The size in bytes of the render pool used by the scan-line converter  */
3662e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* to do all of its work.                                                */
3672e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
3682e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* This must be greater than 4KByte if you use FreeType to rasterize     */
3692e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* glyphs; otherwise, you may set it to zero to avoid unnecessary        */
3702e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* allocation of the render pool.                                        */
3712e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
3722e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com#define FT_RENDER_POOL_SIZE  16384L
3732e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
3742e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
3752e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*************************************************************************/
3762e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
3772e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* FT_MAX_MODULES                                                        */
3782e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
3792e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   The maximum number of modules that can be registered in a single    */
3802e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   FreeType library object.  32 is the default.                        */
3812e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
3822e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com#define FT_MAX_MODULES  32
3832e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
3842e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
3852e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*************************************************************************/
3862e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
3872e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* Debug level                                                           */
3882e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
3892e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   FreeType can be compiled in debug or trace mode.  In debug mode,    */
3902e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   errors are reported through the `ftdebug' component.  In trace      */
3912e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   mode, additional messages are sent to the standard output during    */
3922e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   execution.                                                          */
3932e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
3942e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   Define FT_DEBUG_LEVEL_ERROR to build the library in debug mode.     */
3952e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   Define FT_DEBUG_LEVEL_TRACE to build it in trace mode.              */
3962e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
3972e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   Don't define any of these macros to compile in `release' mode!      */
3982e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
3992e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   Do not #undef these macros here since the build system might define */
4002e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   them for certain configurations only.                               */
4012e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
4022e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com/* #define FT_DEBUG_LEVEL_ERROR */
4032e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com/* #define FT_DEBUG_LEVEL_TRACE */
4042e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
4052e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
4062e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*************************************************************************/
4072e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
4082e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* Autofitter debugging                                                  */
4092e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
4102e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   If FT_DEBUG_AUTOFIT is defined, FreeType provides some means to     */
4112e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   control the autofitter behaviour for debugging purposes with global */
4122e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   boolean variables (consequently, you should *never* enable this     */
4132e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   while compiling in `release' mode):                                 */
4142e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
4152e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*     _af_debug_disable_horz_hints                                      */
4162e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*     _af_debug_disable_vert_hints                                      */
4172e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*     _af_debug_disable_blue_hints                                      */
4182e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
4192e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   Additionally, the following functions provide dumps of various      */
4202e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   internal autofit structures to stdout (using `printf'):             */
4212e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
4222e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*     af_glyph_hints_dump_points                                        */
4232e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*     af_glyph_hints_dump_segments                                      */
4242e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*     af_glyph_hints_dump_edges                                         */
4252e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
4262e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   As an argument, they use another global variable:                   */
4272e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
4282e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*     _af_debug_hints                                                   */
4292e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
4302e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   Please have a look at the `ftgrid' demo program to see how those    */
4312e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   variables and macros should be used.                                */
4322e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
4332e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   Do not #undef these macros here since the build system might define */
4342e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   them for certain configurations only.                               */
4352e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
4362e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com/* #define FT_DEBUG_AUTOFIT */
4372e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
4382e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
4392e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*************************************************************************/
4402e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
4412e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* Memory Debugging                                                      */
4422e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
4432e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   FreeType now comes with an integrated memory debugger that is       */
4442e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   capable of detecting simple errors like memory leaks or double      */
4452e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   deletes.  To compile it within your build of the library, you       */
4462e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   should define FT_DEBUG_MEMORY here.                                 */
4472e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
4482e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   Note that the memory debugger is only activated at runtime when     */
4492e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   when the _environment_ variable `FT2_DEBUG_MEMORY' is defined also! */
4502e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
4512e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   Do not #undef this macro here since the build system might define   */
4522e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   it for certain configurations only.                                 */
4532e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
4542e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com/* #define FT_DEBUG_MEMORY */
4552e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
4562e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
4572e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*************************************************************************/
4582e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
4592e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* Module errors                                                         */
4602e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
4612e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   If this macro is set (which is _not_ the default), the higher byte  */
4622e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   of an error code gives the module in which the error has occurred,  */
4632e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   while the lower byte is the real error code.                        */
4642e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
4652e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   Setting this macro makes sense for debugging purposes only, since   */
4662e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   it would break source compatibility of certain programs that use    */
4672e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   FreeType 2.                                                         */
4682e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
4692e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   More details can be found in the files ftmoderr.h and fterrors.h.   */
4702e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
4712e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com#undef FT_CONFIG_OPTION_USE_MODULE_ERRORS
4722e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
4732e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
4742e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*************************************************************************/
4752e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
4762e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* Position Independent Code                                             */
4772e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
4782e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   If this macro is set (which is _not_ the default), FreeType2 will   */
4792e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   avoid creating constants that require address fixups.  Instead the  */
4802e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   constants will be moved into a struct and additional intialization  */
4812e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   code will be used.                                                  */
4822e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
4832e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   Setting this macro is needed for systems that prohibit address      */
4842e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   fixups, such as BREW.                                               */
4852e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
4862e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com/* #define FT_CONFIG_OPTION_PIC */
4872e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
4882e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
4892e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*************************************************************************/
4902e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*************************************************************************/
4912e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /****                                                                 ****/
4922e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /****        S F N T   D R I V E R    C O N F I G U R A T I O N       ****/
4932e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /****                                                                 ****/
4942e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*************************************************************************/
4952e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*************************************************************************/
4962e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
4972e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
4982e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*************************************************************************/
4992e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
5002e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* Define TT_CONFIG_OPTION_EMBEDDED_BITMAPS if you want to support       */
5012e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* embedded bitmaps in all formats using the SFNT module (namely         */
5022e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* TrueType & OpenType).                                                 */
5032e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
5042e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com#define TT_CONFIG_OPTION_EMBEDDED_BITMAPS
5052e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
5062e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
5072e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*************************************************************************/
5082e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
5092e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* Define TT_CONFIG_OPTION_POSTSCRIPT_NAMES if you want to be able to    */
5102e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* load and enumerate the glyph Postscript names in a TrueType or        */
5112e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* OpenType file.                                                        */
5122e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
5132e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* Note that when you do not compile the `PSNames' module by undefining  */
5142e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* the above FT_CONFIG_OPTION_POSTSCRIPT_NAMES, the `sfnt' module will   */
5152e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* contain additional code used to read the PS Names table from a font.  */
5162e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
5172e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* (By default, the module uses `PSNames' to extract glyph names.)       */
5182e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
5192e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com#define TT_CONFIG_OPTION_POSTSCRIPT_NAMES
5202e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
5212e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
5222e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*************************************************************************/
5232e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
5242e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* Define TT_CONFIG_OPTION_SFNT_NAMES if your applications need to       */
5252e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* access the internal name table in a SFNT-based format like TrueType   */
5262e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* or OpenType.  The name table contains various strings used to         */
5272e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* describe the font, like family name, copyright, version, etc.  It     */
5282e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* does not contain any glyph name though.                               */
5292e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
5302e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* Accessing SFNT names is done through the functions declared in        */
5312e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* `freetype/ftsnames.h'.                                                */
5322e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
5332e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com#define TT_CONFIG_OPTION_SFNT_NAMES
5342e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
5352e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
5362e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*************************************************************************/
5372e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
5382e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* TrueType CMap support                                                 */
5392e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
5402e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   Here you can fine-tune which TrueType CMap table format shall be    */
5412e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   supported.                                                          */
5422e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com#define TT_CONFIG_CMAP_FORMAT_0
5432e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com#define TT_CONFIG_CMAP_FORMAT_2
5442e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com#define TT_CONFIG_CMAP_FORMAT_4
5452e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com#define TT_CONFIG_CMAP_FORMAT_6
5462e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com#define TT_CONFIG_CMAP_FORMAT_8
5472e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com#define TT_CONFIG_CMAP_FORMAT_10
5482e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com#define TT_CONFIG_CMAP_FORMAT_12
5492e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com#define TT_CONFIG_CMAP_FORMAT_13
5502e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com#define TT_CONFIG_CMAP_FORMAT_14
5512e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
5522e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
5532e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*************************************************************************/
5542e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*************************************************************************/
5552e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /****                                                                 ****/
5562e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /****    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   ****/
5572e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /****                                                                 ****/
5582e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*************************************************************************/
5592e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*************************************************************************/
5602e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
5612e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*************************************************************************/
5622e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
5632e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* Define TT_CONFIG_OPTION_BYTECODE_INTERPRETER if you want to compile   */
5642e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* a bytecode interpreter in the TrueType driver.                        */
5652e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
5662e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* By undefining this, you will only compile the code necessary to load  */
5672e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* TrueType glyphs without hinting.                                      */
5682e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
5692e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   Do not #undef this macro here, since the build system might         */
5702e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   define it for certain configurations only.                          */
5712e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
5722e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com#define TT_CONFIG_OPTION_BYTECODE_INTERPRETER
5732e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
5742e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
5752e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*************************************************************************/
5762e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
5772e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* Define TT_CONFIG_OPTION_SUBPIXEL_HINTING if you want to compile       */
5782e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* EXPERIMENTAL subpixel hinting support into the TrueType driver.  This */
5792e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* replaces the native TrueType hinting mechanism when anything but      */
5802e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* FT_RENDER_MODE_MONO is requested.                                     */
5812e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
5822e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* Enabling this causes the TrueType driver to ignore instructions under */
5832e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* certain conditions.  This is done in accordance with the guide here,  */
5842e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* with some minor differences:                                          */
5852e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
5862e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*  http://www.microsoft.com/typography/cleartype/truetypecleartype.aspx */
5872e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
5882e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* By undefining this, you only compile the code necessary to hint       */
5892e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* TrueType glyphs with native TT hinting.                               */
5902e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
5912e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   This option requires TT_CONFIG_OPTION_BYTECODE_INTERPRETER to be    */
5922e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   defined.                                                            */
5932e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
5942e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com/* #define TT_CONFIG_OPTION_SUBPIXEL_HINTING */
5952e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
5962e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
5972e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*************************************************************************/
5982e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
5992e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* If you define TT_CONFIG_OPTION_UNPATENTED_HINTING, a special version  */
6002e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* of the TrueType bytecode interpreter is used that doesn't implement   */
6012e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* any of the patented opcodes and algorithms.  The patents related to   */
6022e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* TrueType hinting have expired worldwide since May 2010; this option   */
6032e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* is now deprecated.                                                    */
6042e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
6052e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* Note that the TT_CONFIG_OPTION_UNPATENTED_HINTING macro is *ignored*  */
6062e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* if you define TT_CONFIG_OPTION_BYTECODE_INTERPRETER; in other words,  */
6072e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* either define TT_CONFIG_OPTION_BYTECODE_INTERPRETER or                */
6082e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* TT_CONFIG_OPTION_UNPATENTED_HINTING but not both at the same time.    */
6092e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
6102e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* This macro is only useful for a small number of font files (mostly    */
6112e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* for Asian scripts) that require bytecode interpretation to properly   */
6122e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* load glyphs.  For all other fonts, this produces unpleasant results,  */
6132e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* thus the unpatented interpreter is never used to load glyphs from     */
6142e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* TrueType fonts unless one of the following two options is used.       */
6152e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
6162e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   - The unpatented interpreter is explicitly activated by the user    */
6172e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*     through the FT_PARAM_TAG_UNPATENTED_HINTING parameter tag         */
6182e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*     when opening the FT_Face.                                         */
6192e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
6202e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   - FreeType detects that the FT_Face corresponds to one of the       */
6212e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*     `trick' fonts (e.g., `Mingliu') it knows about.  The font engine  */
6222e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*     contains a hard-coded list of font names and other matching       */
6232e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*     parameters (see function `tt_face_init' in file                   */
6242e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*     `src/truetype/ttobjs.c').                                         */
6252e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
6262e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* Here a sample code snippet for using FT_PARAM_TAG_UNPATENTED_HINTING. */
6272e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
6282e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   {                                                                   */
6292e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*     FT_Parameter  parameter;                                          */
6302e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*     FT_Open_Args  open_args;                                          */
6312e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
6322e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
6332e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*     parameter.tag = FT_PARAM_TAG_UNPATENTED_HINTING;                  */
6342e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
6352e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*     open_args.flags      = FT_OPEN_PATHNAME | FT_OPEN_PARAMS;         */
6362e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*     open_args.pathname   = my_font_pathname;                          */
6372e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*     open_args.num_params = 1;                                         */
6382e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*     open_args.params     = &parameter;                                */
6392e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
6402e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*     error = FT_Open_Face( library, &open_args, index, &face );        */
6412e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*     ...                                                               */
6422e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   }                                                                   */
6432e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
6442e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com/* #define TT_CONFIG_OPTION_UNPATENTED_HINTING */
6452e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
6462e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
6472e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*************************************************************************/
6482e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
6492e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* Define TT_CONFIG_OPTION_INTERPRETER_SWITCH to compile the TrueType    */
6502e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* bytecode interpreter with a huge switch statement, rather than a call */
6512e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* table.  This results in smaller and faster code for a number of       */
6522e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* architectures.                                                        */
6532e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
6542e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* Note however that on some compiler/processor combinations, undefining */
6552e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* this macro will generate faster, though larger, code.                 */
6562e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
6572e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com#define TT_CONFIG_OPTION_INTERPRETER_SWITCH
6582e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
6592e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
6602e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*************************************************************************/
6612e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
6622e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* Define TT_CONFIG_OPTION_COMPONENT_OFFSET_SCALED to compile the        */
6632e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* TrueType glyph loader to use Apple's definition of how to handle      */
6642e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* component offsets in composite glyphs.                                */
6652e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
6662e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* Apple and MS disagree on the default behavior of component offsets    */
6672e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* in composites.  Apple says that they should be scaled by the scaling  */
6682e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* factors in the transformation matrix (roughly, it's more complex)     */
6692e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* while MS says they should not.  OpenType defines two bits in the      */
6702e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* composite flags array which can be used to disambiguate, but old      */
6712e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* fonts will not have them.                                             */
6722e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
6732e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   http://www.microsoft.com/typography/otspec/glyf.htm                 */
6742e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*   http://fonts.apple.com/TTRefMan/RM06/Chap6glyf.html                 */
6752e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
6762e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com#undef TT_CONFIG_OPTION_COMPONENT_OFFSET_SCALED
6772e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
6782e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
6792e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*************************************************************************/
6802e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
6812e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* Define TT_CONFIG_OPTION_GX_VAR_SUPPORT if you want to include         */
6822e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* support for Apple's distortable font technology (fvar, gvar, cvar,    */
6832e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* and avar tables).  This has many similarities to Type 1 Multiple      */
6842e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* Masters support.                                                      */
6852e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
6862e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com#define TT_CONFIG_OPTION_GX_VAR_SUPPORT
6872e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
6882e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
6892e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*************************************************************************/
6902e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
6912e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* Define TT_CONFIG_OPTION_BDF if you want to include support for        */
6922e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* an embedded `BDF ' table within SFNT-based bitmap formats.            */
6932e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
6942e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com#define TT_CONFIG_OPTION_BDF
6952e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
6962e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
6972e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*************************************************************************/
6982e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*************************************************************************/
6992e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /****                                                                 ****/
7002e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /****      T Y P E 1   D R I V E R    C O N F I G U R A T I O N       ****/
7012e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /****                                                                 ****/
7022e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*************************************************************************/
7032e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*************************************************************************/
7042e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
7052e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
7062e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*************************************************************************/
7072e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
7082e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* T1_MAX_DICT_DEPTH is the maximum depth of nest dictionaries and       */
7092e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* arrays in the Type 1 stream (see t1load.c).  A minimum of 4 is        */
7102e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* required.                                                             */
7112e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
7122e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com#define T1_MAX_DICT_DEPTH  5
7132e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
7142e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
7152e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*************************************************************************/
7162e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
7172e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* T1_MAX_SUBRS_CALLS details the maximum number of nested sub-routine   */
7182e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* calls during glyph loading.                                           */
7192e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
7202e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com#define T1_MAX_SUBRS_CALLS  16
7212e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
7222e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
7232e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*************************************************************************/
7242e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
7252e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* T1_MAX_CHARSTRING_OPERANDS is the charstring stack's capacity.  A     */
7262e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* minimum of 16 is required.                                            */
7272e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
7282e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* The Chinese font MingTiEG-Medium (CNS 11643 character set) needs 256. */
7292e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
7302e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com#define T1_MAX_CHARSTRINGS_OPERANDS  256
7312e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
7322e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
7332e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*************************************************************************/
7342e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
7352e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* Define this configuration macro if you want to prevent the            */
7362e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* compilation of `t1afm', which is in charge of reading Type 1 AFM      */
7372e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* files into an existing face.  Note that if set, the T1 driver will be */
7382e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* unable to produce kerning distances.                                  */
7392e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
7402e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com#undef T1_CONFIG_OPTION_NO_AFM
7412e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
7422e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
7432e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*************************************************************************/
7442e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
7452e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* Define this configuration macro if you want to prevent the            */
7462e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* compilation of the Multiple Masters font support in the Type 1        */
7472e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* driver.                                                               */
7482e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
7492e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com#undef T1_CONFIG_OPTION_NO_MM_SUPPORT
7502e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
7512e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
7522e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*************************************************************************/
7532e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*************************************************************************/
7542e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /****                                                                 ****/
7552e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /****         C F F   D R I V E R    C O N F I G U R A T I O N        ****/
7562e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /****                                                                 ****/
7572e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*************************************************************************/
7582e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*************************************************************************/
7592e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
7602e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
7612e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*************************************************************************/
7622e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
7632e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* CFF_CONFIG_OPTION_OLD_ENGINE controls whether the pre-Adobe CFF       */
7642e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* engine gets compiled into FreeType.  If defined, it is possible to    */
7652e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* switch between the two engines using the `hinting-engine' property of */
7662e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* the cff driver module.                                                */
7672e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
7682e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com/* #define CFF_CONFIG_OPTION_OLD_ENGINE */
7692e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
7702e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
7712e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*************************************************************************/
7722e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*************************************************************************/
7732e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /****                                                                 ****/
7742e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /****    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     ****/
7752e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /****                                                                 ****/
7762e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*************************************************************************/
7772e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*************************************************************************/
7782e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
7792e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
7802e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*************************************************************************/
7812e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
7822e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* Compile autofit module with CJK (Chinese, Japanese, Korean) script    */
7832e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* support.                                                              */
7842e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
7852e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com#define AF_CONFIG_OPTION_CJK
7862e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
7872e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*************************************************************************/
7882e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
7892e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* Compile autofit module with Indic script support.                     */
7902e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
7912e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com#define AF_CONFIG_OPTION_INDIC
7922e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
7932e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*************************************************************************/
7942e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
7952e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* Compile autofit module with warp hinting.  The idea of the warping    */
7962e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* code is to slightly scale and shift a glyph within a single dimension */
7972e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* so that as much of its segments are aligned (more or less) on the     */
7982e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* grid.  To find out the optimal scaling and shifting value, various    */
7992e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* parameter combinations are tried and scored.                          */
8002e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
8012e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* This experimental option is only active if the render mode is         */
8022e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* FT_RENDER_MODE_LIGHT.                                                 */
8032e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*                                                                       */
8042e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com/* #define AF_CONFIG_OPTION_USE_WARPER */
8052e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
8062e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /* */
8072e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
8082e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
8092e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*
8102e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com   *  This macro is obsolete.  Support has been removed in FreeType
8112e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com   *  version 2.5.
8122e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com   */
8132e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com/* #define FT_CONFIG_OPTION_OLD_INTERNALS */
8142e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
8152e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
8162e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com  /*
8172e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com   * This macro is defined if either unpatented or native TrueType
8182e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com   * hinting is requested by the definitions above.
8192e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com   */
8202e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com#ifdef TT_CONFIG_OPTION_BYTECODE_INTERPRETER
8212e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com#define  TT_USE_BYTECODE_INTERPRETER
8222e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com#undef   TT_CONFIG_OPTION_UNPATENTED_HINTING
8232e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com#elif defined TT_CONFIG_OPTION_UNPATENTED_HINTING
8242e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com#define  TT_USE_BYTECODE_INTERPRETER
8252e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com#endif
8262e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
8272e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.comFT_END_HEADER
8282e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
8292e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
8302e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com#endif /* __FTOPTION_H__ */
8312e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
8322e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com
8332e767c35ca082b41f76e9de811a093f196485b6ddjsollen@google.com/* END */
834