ftoption.h
上传用户:yisoukefu
上传日期:2020-08-09
资源大小:39506k
文件大小:41k
源码类别:

其他游戏

开发平台:

Visual C++

  1. /***************************************************************************/
  2. /*                                                                         */
  3. /*  ftoption.h                                                             */
  4. /*                                                                         */
  5. /*    User-selectable configuration macros (specification only).           */
  6. /*                                                                         */
  7. /*  Copyright 1996-2001, 2002, 2003, 2004, 2005, 2006, 2007 by             */
  8. /*  David Turner, Robert Wilhelm, and Werner Lemberg.                      */
  9. /*                                                                         */
  10. /*  This file is part of the FreeType project, and may only be used,       */
  11. /*  modified, and distributed under the terms of the FreeType project      */
  12. /*  license, LICENSE.TXT.  By continuing to use, modify, or distribute     */
  13. /*  this file you indicate that you have read the license and              */
  14. /*  understand and accept it fully.                                        */
  15. /*                                                                         */
  16. /***************************************************************************/
  17. #ifndef __FTOPTION_H__
  18. #define __FTOPTION_H__
  19. #include <ft2build.h>
  20. FT_BEGIN_HEADER
  21.   /*************************************************************************/
  22.   /*                                                                       */
  23.   /*                 USER-SELECTABLE CONFIGURATION MACROS                  */
  24.   /*                                                                       */
  25.   /* This file contains the default configuration macro definitions for    */
  26.   /* a standard build of the FreeType library.  There are three ways to    */
  27.   /* use this file to build project-specific versions of the library:      */
  28.   /*                                                                       */
  29.   /*  - You can modify this file by hand, but this is not recommended in   */
  30.   /*    cases where you would like to build several versions of the        */
  31.   /*    library from a single source directory.                            */
  32.   /*                                                                       */
  33.   /*  - You can put a copy of this file in your build directory, more      */
  34.   /*    precisely in `$BUILD/freetype/config/ftoption.h', where `$BUILD'   */
  35.   /*    is the name of a directory that is included _before_ the FreeType  */
  36.   /*    include path during compilation.                                   */
  37.   /*                                                                       */
  38.   /*    The default FreeType Makefiles and Jamfiles use the build          */
  39.   /*    directory `builds/<system>' by default, but you can easily change  */
  40.   /*    that for your own projects.                                        */
  41.   /*                                                                       */
  42.   /*  - Copy the file <ft2build.h> to `$BUILD/ft2build.h' and modify it    */
  43.   /*    slightly to pre-define the macro FT_CONFIG_OPTIONS_H used to       */
  44.   /*    locate this file during the build.  For example,                   */
  45.   /*                                                                       */
  46.   /*      #define FT_CONFIG_OPTIONS_H  <myftoptions.h>                     */
  47.   /*      #include <freetype/config/ftheader.h>                            */
  48.   /*                                                                       */
  49.   /*    will use `$BUILD/myftoptions.h' instead of this file for macro     */
  50.   /*    definitions.                                                       */
  51.   /*                                                                       */
  52.   /*    Note also that you can similarly pre-define the macro              */
  53.   /*    FT_CONFIG_MODULES_H used to locate the file listing of the modules */
  54.   /*    that are statically linked to the library at compile time.  By     */
  55.   /*    default, this file is <freetype/config/ftmodule.h>.                */
  56.   /*                                                                       */
  57.   /*  We highly recommend using the third method whenever possible.        */
  58.   /*                                                                       */
  59.   /*************************************************************************/
  60.   /*************************************************************************/
  61.   /*************************************************************************/
  62.   /****                                                                 ****/
  63.   /**** 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 ****/
  64.   /****                                                                 ****/
  65.   /*************************************************************************/
  66.   /*************************************************************************/
  67.   /*************************************************************************/
  68.   /*                                                                       */
  69.   /* Uncomment the line below if you want to activate sub-pixel rendering  */
  70.   /* (a.k.a. LCD rendering, or ClearType) in this build of the library.    */
  71.   /*                                                                       */
  72.   /* Note that this feature is covered by several Microsoft patents        */
  73.   /* and should not be activated in any default build of the library.      */
  74.   /*                                                                       */
  75.   /* This macro has no impact on the FreeType API, only on its             */
  76.   /* _implementation_.  For example, using FT_RENDER_MODE_LCD when calling */
  77.   /* FT_Render_Glyph still generates a bitmap that is 3 times larger than  */
  78.   /* the original size; the difference will be that each triplet of        */
  79.   /* subpixels has R=G=B.                                                  */
  80.   /*                                                                       */
  81.   /* This is done to allow FreeType clients to run unmodified, forcing     */
  82.   /* them to display normal gray-level anti-aliased glyphs.                */
  83.   /*                                                                       */
  84. /* #define FT_CONFIG_OPTION_SUBPIXEL_RENDERING */
  85.   /*************************************************************************/
  86.   /*                                                                       */
  87.   /* Many compilers provide a non-ANSI 64-bit data type that can be used   */
  88.   /* by FreeType to speed up some computations.  However, this will create */
  89.   /* some problems when compiling the library in strict ANSI mode.         */
  90.   /*                                                                       */
  91.   /* For this reason, the use of 64-bit integers is normally disabled when */
  92.   /* the __STDC__ macro is defined.  You can however disable this by       */
  93.   /* defining the macro FT_CONFIG_OPTION_FORCE_INT64 here.                 */
  94.   /*                                                                       */
  95.   /* For most compilers, this will only create compilation warnings when   */
  96.   /* building the library.                                                 */
  97.   /*                                                                       */
  98.   /* ObNote: The compiler-specific 64-bit integers are detected in the     */
  99.   /*         file `ftconfig.h' either statically or through the            */
  100.   /*         `configure' script on supported platforms.                    */
  101.   /*                                                                       */
  102. #undef  FT_CONFIG_OPTION_FORCE_INT64
  103.   /*************************************************************************/
  104.   /*                                                                       */
  105.   /* LZW-compressed file support.                                          */
  106.   /*                                                                       */
  107.   /*   FreeType now handles font files that have been compressed with the  */
  108.   /*   `compress' program.  This is mostly used to parse many of the PCF   */
  109.   /*   files that come with various X11 distributions.  The implementation */
  110.   /*   uses NetBSD's `zopen' to partially uncompress the file on the fly   */
  111.   /*   (see src/lzw/ftgzip.c).                                             */
  112.   /*                                                                       */
  113.   /*   Define this macro if you want to enable this `feature'.             */
  114.   /*                                                                       */
  115. #define FT_CONFIG_OPTION_USE_LZW
  116.   /*************************************************************************/
  117.   /*                                                                       */
  118.   /* Gzip-compressed file support.                                         */
  119.   /*                                                                       */
  120.   /*   FreeType now handles font files that have been compressed with the  */
  121.   /*   `gzip' program.  This is mostly used to parse many of the PCF files */
  122.   /*   that come with XFree86.  The implementation uses `zlib' to          */
  123.   /*   partially uncompress the file on the fly (see src/gzip/ftgzip.c).   */
  124.   /*                                                                       */
  125.   /*   Define this macro if you want to enable this `feature'.  See also   */
  126.   /*   the macro FT_CONFIG_OPTION_SYSTEM_ZLIB below.                       */
  127.   /*                                                                       */
  128. #define FT_CONFIG_OPTION_USE_ZLIB
  129.   /*************************************************************************/
  130.   /*                                                                       */
  131.   /* ZLib library selection                                                */
  132.   /*                                                                       */
  133.   /*   This macro is only used when FT_CONFIG_OPTION_USE_ZLIB is defined.  */
  134.   /*   It allows FreeType's `ftgzip' component to link to the system's     */
  135.   /*   installation of the ZLib library.  This is useful on systems like   */
  136.   /*   Unix or VMS where it generally is already available.                */
  137.   /*                                                                       */
  138.   /*   If you let it undefined, the component will use its own copy        */
  139.   /*   of the zlib sources instead.  These have been modified to be        */
  140.   /*   included directly within the component and *not* export external    */
  141.   /*   function names.  This allows you to link any program with FreeType  */
  142.   /*   _and_ ZLib without linking conflicts.                               */
  143.   /*                                                                       */
  144.   /*   Do not #undef this macro here since the build system might define   */
  145.   /*   it for certain configurations only.                                 */
  146.   /*                                                                       */
  147. /* #define  FT_CONFIG_OPTION_SYSTEM_ZLIB */
  148.   /*************************************************************************/
  149.   /*                                                                       */
  150.   /* DLL export compilation                                                */
  151.   /*                                                                       */
  152.   /*   When compiling FreeType as a DLL, some systems/compilers need a     */
  153.   /*   special keyword in front OR after the return type of function       */
  154.   /*   declarations.                                                       */
  155.   /*                                                                       */
  156.   /*   Two macros are used within the FreeType source code to define       */
  157.   /*   exported library functions: FT_EXPORT and FT_EXPORT_DEF.            */
  158.   /*                                                                       */
  159.   /*     FT_EXPORT( return_type )                                          */
  160.   /*                                                                       */
  161.   /*       is used in a function declaration, as in                        */
  162.   /*                                                                       */
  163.   /*         FT_EXPORT( FT_Error )                                         */
  164.   /*         FT_Init_FreeType( FT_Library*  alibrary );                    */
  165.   /*                                                                       */
  166.   /*                                                                       */
  167.   /*     FT_EXPORT_DEF( return_type )                                      */
  168.   /*                                                                       */
  169.   /*       is used in a function definition, as in                         */
  170.   /*                                                                       */
  171.   /*         FT_EXPORT_DEF( FT_Error )                                     */
  172.   /*         FT_Init_FreeType( FT_Library*  alibrary )                     */
  173.   /*         {                                                             */
  174.   /*           ... some code ...                                           */
  175.   /*           return FT_Err_Ok;                                           */
  176.   /*         }                                                             */
  177.   /*                                                                       */
  178.   /*   You can provide your own implementation of FT_EXPORT and            */
  179.   /*   FT_EXPORT_DEF here if you want.  If you leave them undefined, they  */
  180.   /*   will be later automatically defined as `extern return_type' to      */
  181.   /*   allow normal compilation.                                           */
  182.   /*                                                                       */
  183.   /*   Do not #undef these macros here since the build system might define */
  184.   /*   them for certain configurations only.                               */
  185.   /*                                                                       */
  186. /* #define  FT_EXPORT(x)       extern x */
  187. /* #define  FT_EXPORT_DEF(x)   x */
  188.   /*************************************************************************/
  189.   /*                                                                       */
  190.   /* Glyph Postscript Names handling                                       */
  191.   /*                                                                       */
  192.   /*   By default, FreeType 2 is compiled with the `PSNames' module.  This */
  193.   /*   module is in charge of converting a glyph name string into a        */
  194.   /*   Unicode value, or return a Macintosh standard glyph name for the    */
  195.   /*   use with the TrueType `post' table.                                 */
  196.   /*                                                                       */
  197.   /*   Undefine this macro if you do not want `PSNames' compiled in your   */
  198.   /*   build of FreeType.  This has the following effects:                 */
  199.   /*                                                                       */
  200.   /*   - The TrueType driver will provide its own set of glyph names,      */
  201.   /*     if you build it to support postscript names in the TrueType       */
  202.   /*     `post' table.                                                     */
  203.   /*                                                                       */
  204.   /*   - The Type 1 driver will not be able to synthetize a Unicode        */
  205.   /*     charmap out of the glyphs found in the fonts.                     */
  206.   /*                                                                       */
  207.   /*   You would normally undefine this configuration macro when building  */
  208.   /*   a version of FreeType that doesn't contain a Type 1 or CFF driver.  */
  209.   /*                                                                       */
  210. #define FT_CONFIG_OPTION_POSTSCRIPT_NAMES
  211.   /*************************************************************************/
  212.   /*                                                                       */
  213.   /* Postscript Names to Unicode Values support                            */
  214.   /*                                                                       */
  215.   /*   By default, FreeType 2 is built with the `PSNames' module compiled  */
  216.   /*   in.  Among other things, the module is used to convert a glyph name */
  217.   /*   into a Unicode value.  This is especially useful in order to        */
  218.   /*   synthetize on the fly a Unicode charmap from the CFF/Type 1 driver  */
  219.   /*   through a big table named the `Adobe Glyph List' (AGL).             */
  220.   /*                                                                       */
  221.   /*   Undefine this macro if you do not want the Adobe Glyph List         */
  222.   /*   compiled in your `PSNames' module.  The Type 1 driver will not be   */
  223.   /*   able to synthetize a Unicode charmap out of the glyphs found in the */
  224.   /*   fonts.                                                              */
  225.   /*                                                                       */
  226. #define FT_CONFIG_OPTION_ADOBE_GLYPH_LIST
  227.   /*************************************************************************/
  228.   /*                                                                       */
  229.   /* Support for Mac fonts                                                 */
  230.   /*                                                                       */
  231.   /*   Define this macro if you want support for outline fonts in Mac      */
  232.   /*   format (mac dfont, mac resource, macbinary containing a mac         */
  233.   /*   resource) on non-Mac platforms.                                     */
  234.   /*                                                                       */
  235.   /*   Note that the `FOND' resource isn't checked.                        */
  236.   /*                                                                       */
  237. #define FT_CONFIG_OPTION_MAC_FONTS
  238.   /*************************************************************************/
  239.   /*                                                                       */
  240.   /* Guessing methods to access embedded resource forks                    */
  241.   /*                                                                       */
  242.   /*   Enable extra Mac fonts support on non-Mac platforms (e.g.           */
  243.   /*   GNU/Linux).                                                         */
  244.   /*                                                                       */
  245.   /*   Resource forks which include fonts data are stored sometimes in     */
  246.   /*   locations which users or developers don't expected.  In some cases, */
  247.   /*   resource forks start with some offset from the head of a file.  In  */
  248.   /*   other cases, the actual resource fork is stored in file different   */
  249.   /*   from what the user specifies.  If this option is activated,         */
  250.   /*   FreeType tries to guess whether such offsets or different file      */
  251.   /*   names must be used.                                                 */
  252.   /*                                                                       */
  253.   /*   Note that normal, direct access of resource forks is controlled via */
  254.   /*   the FT_CONFIG_OPTION_MAC_FONTS option.                              */
  255.   /*                                                                       */
  256. #ifdef FT_CONFIG_OPTION_MAC_FONTS
  257. #define FT_CONFIG_OPTION_GUESSING_EMBEDDED_RFORK
  258. #endif
  259.   /*************************************************************************/
  260.   /*                                                                       */
  261.   /* Allow the use of FT_Incremental_Interface to load typefaces that      */
  262.   /* contain no glyph data, but supply it via a callback function.         */
  263.   /* This allows FreeType to be used with the PostScript language, using   */
  264.   /* the GhostScript interpreter.                                          */
  265.   /*                                                                       */
  266. /* #define FT_CONFIG_OPTION_INCREMENTAL */
  267.   /*************************************************************************/
  268.   /*                                                                       */
  269.   /* The size in bytes of the render pool used by the scan-line converter  */
  270.   /* to do all of its work.                                                */
  271.   /*                                                                       */
  272.   /* This must be greater than 4KByte if you use FreeType to rasterize     */
  273.   /* glyphs; otherwise, you may set it to zero to avoid unnecessary        */
  274.   /* allocation of the render pool.                                        */
  275.   /*                                                                       */
  276. #define FT_RENDER_POOL_SIZE  16384L
  277.   /*************************************************************************/
  278.   /*                                                                       */
  279.   /* FT_MAX_MODULES                                                        */
  280.   /*                                                                       */
  281.   /*   The maximum number of modules that can be registered in a single    */
  282.   /*   FreeType library object.  32 is the default.                        */
  283.   /*                                                                       */
  284. #define FT_MAX_MODULES  32
  285.   /*************************************************************************/
  286.   /*                                                                       */
  287.   /* Debug level                                                           */
  288.   /*                                                                       */
  289.   /*   FreeType can be compiled in debug or trace mode.  In debug mode,    */
  290.   /*   errors are reported through the `ftdebug' component.  In trace      */
  291.   /*   mode, additional messages are sent to the standard output during    */
  292.   /*   execution.                                                          */
  293.   /*                                                                       */
  294.   /*   Define FT_DEBUG_LEVEL_ERROR to build the library in debug mode.     */
  295.   /*   Define FT_DEBUG_LEVEL_TRACE to build it in trace mode.              */
  296.   /*                                                                       */
  297.   /*   Don't define any of these macros to compile in `release' mode!      */
  298.   /*                                                                       */
  299.   /*   Do not #undef these macros here since the build system might define */
  300.   /*   them for certain configurations only.                               */
  301.   /*                                                                       */
  302. /* #define FT_DEBUG_LEVEL_ERROR */
  303. /* #define FT_DEBUG_LEVEL_TRACE */
  304.   /*************************************************************************/
  305.   /*                                                                       */
  306.   /* Memory Debugging                                                      */
  307.   /*                                                                       */
  308.   /*   FreeType now comes with an integrated memory debugger that is       */
  309.   /*   capable of detecting simple errors like memory leaks or double      */
  310.   /*   deletes.  To compile it within your build of the library, you       */
  311.   /*   should define FT_DEBUG_MEMORY here.                                 */
  312.   /*                                                                       */
  313.   /*   Note that the memory debugger is only activated at runtime when     */
  314.   /*   when the _environment_ variable `FT2_DEBUG_MEMORY' is defined also! */
  315.   /*                                                                       */
  316.   /*   Do not #undef this macro here since the build system might define   */
  317.   /*   it for certain configurations only.                                 */
  318.   /*                                                                       */
  319. /* #define FT_DEBUG_MEMORY */
  320.   /*************************************************************************/
  321.   /*                                                                       */
  322.   /* Module errors                                                         */
  323.   /*                                                                       */
  324.   /*   If this macro is set (which is _not_ the default), the higher byte  */
  325.   /*   of an error code gives the module in which the error has occurred,  */
  326.   /*   while the lower byte is the real error code.                        */
  327.   /*                                                                       */
  328.   /*   Setting this macro makes sense for debugging purposes only, since   */
  329.   /*   it would break source compatibility of certain programs that use    */
  330.   /*   FreeType 2.                                                         */
  331.   /*                                                                       */
  332.   /*   More details can be found in the files ftmoderr.h and fterrors.h.   */
  333.   /*                                                                       */
  334. #undef FT_CONFIG_OPTION_USE_MODULE_ERRORS
  335.   /*************************************************************************/
  336.   /*************************************************************************/
  337.   /****                                                                 ****/
  338.   /****        S F N T   D R I V E R    C O N F I G U R A T I O N       ****/
  339.   /****                                                                 ****/
  340.   /*************************************************************************/
  341.   /*************************************************************************/
  342.   /*************************************************************************/
  343.   /*                                                                       */
  344.   /* Define TT_CONFIG_OPTION_EMBEDDED_BITMAPS if you want to support       */
  345.   /* embedded bitmaps in all formats using the SFNT module (namely         */
  346.   /* TrueType & OpenType).                                                 */
  347.   /*                                                                       */
  348. #define TT_CONFIG_OPTION_EMBEDDED_BITMAPS
  349.   /*************************************************************************/
  350.   /*                                                                       */
  351.   /* Define TT_CONFIG_OPTION_POSTSCRIPT_NAMES if you want to be able to    */
  352.   /* load and enumerate the glyph Postscript names in a TrueType or        */
  353.   /* OpenType file.                                                        */
  354.   /*                                                                       */
  355.   /* Note that when you do not compile the `PSNames' module by undefining  */
  356.   /* the above FT_CONFIG_OPTION_POSTSCRIPT_NAMES, the `sfnt' module will   */
  357.   /* contain additional code used to read the PS Names table from a font.  */
  358.   /*                                                                       */
  359.   /* (By default, the module uses `PSNames' to extract glyph names.)       */
  360.   /*                                                                       */
  361. #define TT_CONFIG_OPTION_POSTSCRIPT_NAMES
  362.   /*************************************************************************/
  363.   /*                                                                       */
  364.   /* Define TT_CONFIG_OPTION_SFNT_NAMES if your applications need to       */
  365.   /* access the internal name table in a SFNT-based format like TrueType   */
  366.   /* or OpenType.  The name table contains various strings used to         */
  367.   /* describe the font, like family name, copyright, version, etc.  It     */
  368.   /* does not contain any glyph name though.                               */
  369.   /*                                                                       */
  370.   /* Accessing SFNT names is done through the functions declared in        */
  371.   /* `freetype/ftnames.h'.                                                 */
  372.   /*                                                                       */
  373. #define TT_CONFIG_OPTION_SFNT_NAMES
  374.   /*************************************************************************/
  375.   /*                                                                       */
  376.   /* TrueType CMap support                                                 */
  377.   /*                                                                       */
  378.   /*   Here you can fine-tune which TrueType CMap table format shall be    */
  379.   /*   supported.                                                          */
  380. #define TT_CONFIG_CMAP_FORMAT_0
  381. #define TT_CONFIG_CMAP_FORMAT_2
  382. #define TT_CONFIG_CMAP_FORMAT_4
  383. #define TT_CONFIG_CMAP_FORMAT_6
  384. #define TT_CONFIG_CMAP_FORMAT_8
  385. #define TT_CONFIG_CMAP_FORMAT_10
  386. #define TT_CONFIG_CMAP_FORMAT_12
  387.   /*************************************************************************/
  388.   /*************************************************************************/
  389.   /****                                                                 ****/
  390.   /****    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   ****/
  391.   /****                                                                 ****/
  392.   /*************************************************************************/
  393.   /*************************************************************************/
  394.   /*************************************************************************/
  395.   /*                                                                       */
  396.   /* Define TT_CONFIG_OPTION_BYTECODE_INTERPRETER if you want to compile   */
  397.   /* a bytecode interpreter in the TrueType driver.  Note that there are   */
  398.   /* important patent issues related to the use of the interpreter.        */
  399.   /*                                                                       */
  400.   /* By undefining this, you will only compile the code necessary to load  */
  401.   /* TrueType glyphs without hinting.                                      */
  402.   /*                                                                       */
  403.   /*   Do not #undef this macro here, since the build system might         */
  404.   /*   define it for certain configurations only.                          */
  405.   /*                                                                       */
  406. /* #define TT_CONFIG_OPTION_BYTECODE_INTERPRETER */
  407.   /*************************************************************************/
  408.   /*                                                                       */
  409.   /* If you define TT_CONFIG_OPTION_UNPATENTED_HINTING, a special version  */
  410.   /* of the TrueType bytecode interpreter is used that doesn't implement   */
  411.   /* any of the patented opcodes and algorithms.  Note that the            */
  412.   /* the TT_CONFIG_OPTION_UNPATENTED_HINTING macro is *ignored* if you     */
  413.   /* define TT_CONFIG_OPTION_BYTECODE_INTERPRETER; with other words,       */
  414.   /* either define TT_CONFIG_OPTION_BYTECODE_INTERPRETER or                */
  415.   /* TT_CONFIG_OPTION_UNPATENTED_HINTING but not both at the same time.    */
  416.   /*                                                                       */
  417.   /* This macro is only useful for a small number of font files (mostly    */
  418.   /* for Asian scripts) that require bytecode interpretation to properly   */
  419.   /* load glyphs.  For all other fonts, this produces unpleasant results,  */
  420.   /* thus the unpatented interpreter is never used to load glyphs from     */
  421.   /* TrueType fonts unless one of the following two options is used.       */
  422.   /*                                                                       */
  423.   /*   - The unpatented interpreter is explicitly activated by the user    */
  424.   /*     through the FT_PARAM_TAG_UNPATENTED_HINTING parameter tag         */
  425.   /*     when opening the FT_Face.                                         */
  426.   /*                                                                       */
  427.   /*   - FreeType detects that the FT_Face corresponds to one of the       */
  428.   /*     `trick' fonts (e.g., `Mingliu') it knows about.  The font engine  */
  429.   /*     contains a hard-coded list of font names and other matching       */
  430.   /*     parameters (see function `tt_face_init' in file                   */
  431.   /*     `src/truetype/ttobjs.c').                                         */
  432.   /*                                                                       */
  433.   /* Here a sample code snippet for using FT_PARAM_TAG_UNPATENTED_HINTING. */
  434.   /*                                                                       */
  435.   /*   {                                                                   */
  436.   /*     FT_Parameter  parameter;                                          */
  437.   /*     FT_Open_Args  open_args;                                          */
  438.   /*                                                                       */
  439.   /*                                                                       */
  440.   /*     parameter.tag = FT_PARAM_TAG_UNPATENTED_HINTING;                  */
  441.   /*                                                                       */
  442.   /*     open_args.flags      = FT_OPEN_PATHNAME | FT_OPEN_PARAMS;         */
  443.   /*     open_args.pathname   = my_font_pathname;                          */
  444.   /*     open_args.num_params = 1;                                         */
  445.   /*     open_args.params     = &parameter;                                */
  446.   /*                                                                       */
  447.   /*     error = FT_Open_Face( library, &open_args, index, &face );        */
  448.   /*     ...                                                               */
  449.   /*   }                                                                   */
  450.   /*                                                                       */
  451. #define TT_CONFIG_OPTION_UNPATENTED_HINTING
  452.   /*************************************************************************/
  453.   /*                                                                       */
  454.   /* Define TT_CONFIG_OPTION_INTERPRETER_SWITCH to compile the TrueType    */
  455.   /* bytecode interpreter with a huge switch statement, rather than a call */
  456.   /* table.  This results in smaller and faster code for a number of       */
  457.   /* architectures.                                                        */
  458.   /*                                                                       */
  459.   /* Note however that on some compiler/processor combinations, undefining */
  460.   /* this macro will generate faster, though larger, code.                 */
  461.   /*                                                                       */
  462. #define TT_CONFIG_OPTION_INTERPRETER_SWITCH
  463.   /*************************************************************************/
  464.   /*                                                                       */
  465.   /* Define TT_CONFIG_OPTION_COMPONENT_OFFSET_SCALED to compile the        */
  466.   /* TrueType glyph loader to use Apple's definition of how to handle      */
  467.   /* component offsets in composite glyphs.                                */
  468.   /*                                                                       */
  469.   /* Apple and MS disagree on the default behavior of component offsets    */
  470.   /* in composites.  Apple says that they should be scaled by the scaling  */
  471.   /* factors in the transformation matrix (roughly, it's more complex)     */
  472.   /* while MS says they should not.  OpenType defines two bits in the      */
  473.   /* composite flags array which can be used to disambiguate, but old      */
  474.   /* fonts will not have them.                                             */
  475.   /*                                                                       */
  476.   /*   http://partners.adobe.com/asn/developer/opentype/glyf.html          */
  477.   /*   http://fonts.apple.com/TTRefMan/RM06/Chap6glyf.html                 */
  478.   /*                                                                       */
  479. #undef TT_CONFIG_OPTION_COMPONENT_OFFSET_SCALED
  480.   /*************************************************************************/
  481.   /*                                                                       */
  482.   /* Define TT_CONFIG_OPTION_GX_VAR_SUPPORT if you want to include         */
  483.   /* support for Apple's distortable font technology (fvar, gvar, cvar,    */
  484.   /* and avar tables).  This has many similarities to Type 1 Multiple      */
  485.   /* Masters support.                                                      */
  486.   /*                                                                       */
  487. #define TT_CONFIG_OPTION_GX_VAR_SUPPORT
  488.   /*************************************************************************/
  489.   /*                                                                       */
  490.   /* Define TT_CONFIG_OPTION_BDF if you want to include support for        */
  491.   /* an embedded `BDF ' table within SFNT-based bitmap formats.            */
  492.   /*                                                                       */
  493. #define TT_CONFIG_OPTION_BDF
  494.   /*************************************************************************/
  495.   /*************************************************************************/
  496.   /****                                                                 ****/
  497.   /****      T Y P E 1   D R I V E R    C O N F I G U R A T I O N       ****/
  498.   /****                                                                 ****/
  499.   /*************************************************************************/
  500.   /*************************************************************************/
  501.   /*************************************************************************/
  502.   /*                                                                       */
  503.   /* T1_MAX_DICT_DEPTH is the maximal depth of nest dictionaries and       */
  504.   /* arrays in the Type 1 stream (see t1load.c).  A minimum of 4 is        */
  505.   /* required.                                                             */
  506.   /*                                                                       */
  507. #define T1_MAX_DICT_DEPTH  5
  508.   /*************************************************************************/
  509.   /*                                                                       */
  510.   /* T1_MAX_SUBRS_CALLS details the maximum number of nested sub-routine   */
  511.   /* calls during glyph loading.                                           */
  512.   /*                                                                       */
  513. #define T1_MAX_SUBRS_CALLS  16
  514.   /*************************************************************************/
  515.   /*                                                                       */
  516.   /* T1_MAX_CHARSTRING_OPERANDS is the charstring stack's capacity.  A     */
  517.   /* minimum of 16 is required.                                            */
  518.   /*                                                                       */
  519.   /* The Chinese font MingTiEG-Medium (CNS 11643 character set) needs 256. */
  520.   /*                                                                       */
  521. #define T1_MAX_CHARSTRINGS_OPERANDS  256
  522.   /*************************************************************************/
  523.   /*                                                                       */
  524.   /* Define this configuration macro if you want to prevent the            */
  525.   /* compilation of `t1afm', which is in charge of reading Type 1 AFM      */
  526.   /* files into an existing face.  Note that if set, the T1 driver will be */
  527.   /* unable to produce kerning distances.                                  */
  528.   /*                                                                       */
  529. #undef T1_CONFIG_OPTION_NO_AFM
  530.   /*************************************************************************/
  531.   /*                                                                       */
  532.   /* Define this configuration macro if you want to prevent the            */
  533.   /* compilation of the Multiple Masters font support in the Type 1        */
  534.   /* driver.                                                               */
  535.   /*                                                                       */
  536. #undef T1_CONFIG_OPTION_NO_MM_SUPPORT
  537.   /*************************************************************************/
  538.   /*************************************************************************/
  539.   /****                                                                 ****/
  540.   /****    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     ****/
  541.   /****                                                                 ****/
  542.   /*************************************************************************/
  543.   /*************************************************************************/
  544.   /*************************************************************************/
  545.   /*                                                                       */
  546.   /* Compile autofit module with CJK script support.                       */
  547.   /*                                                                       */
  548. #define AF_CONFIG_OPTION_CJK
  549.   /*************************************************************************/
  550.   /*                                                                       */
  551.   /* Compile autofit module with Indic script support.                     */
  552.   /*                                                                       */
  553. #define AF_CONFIG_OPTION_INDIC
  554.   /* */
  555.   /*
  556.    * Define this variable if you want to keep the layout of internal
  557.    * structures that was used prior to FreeType 2.2.  This also compiles in
  558.    * a few obsolete functions to avoid linking problems on typical Unix
  559.    * distributions.
  560.    *
  561.    * For embedded systems or building a new distribution from scratch, it
  562.    * is recommended to disable the macro since it reduces the library's code
  563.    * size and activates a few memory-saving optimizations as well.
  564.    */
  565. #define FT_CONFIG_OPTION_OLD_INTERNALS
  566.   /*
  567.    * This variable is defined if either unpatented or native TrueType
  568.    * hinting is requested by the definitions above.
  569.    */
  570. #ifdef TT_CONFIG_OPTION_BYTECODE_INTERPRETER
  571. #define  TT_USE_BYTECODE_INTERPRETER
  572. #elif defined TT_CONFIG_OPTION_UNPATENTED_HINTING
  573. #define  TT_USE_BYTECODE_INTERPRETER
  574. #endif
  575. FT_END_HEADER
  576. #endif /* __FTOPTION_H__ */
  577. /* END */