/src/compiler/android-ndk/jni/freetype/include/freetype/config/ftoption.h

http://ftk.googlecode.com/ · C++ Header · 710 lines · 50 code · 97 blank · 563 comment · 0 complexity · 1be41cf6a0a645a191e501dbb8ae2d34 MD5 · raw file

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