/vendor/cegui-0.4.0-custom/dependencies/include/freetype/config/ftoption.h

https://github.com/aparvath/multitheftauto · C Header · 565 lines · 37 code · 80 blank · 448 comment · 0 complexity · 5b47bb3d09032d458480f6c5b019782d 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 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. /* Many compilers provide a non-ANSI 64-bit data type that can be used */
  70. /* by FreeType to speed up some computations. However, this will create */
  71. /* some problems when compiling the library in strict ANSI mode. */
  72. /* */
  73. /* For this reason, the use of 64-bit integers is normally disabled when */
  74. /* the __STDC__ macro is defined. You can however disable this by */
  75. /* defining the macro FT_CONFIG_OPTION_FORCE_INT64 here. */
  76. /* */
  77. /* For most compilers, this will only create compilation warnings when */
  78. /* building the library. */
  79. /* */
  80. /* ObNote: The compiler-specific 64-bit integers are detected in the */
  81. /* file "ftconfig.h" either statically or through the */
  82. /* `configure' script on supported platforms. */
  83. /* */
  84. #undef FT_CONFIG_OPTION_FORCE_INT64
  85. /*************************************************************************/
  86. /* */
  87. /* LZW-compressed file support. */
  88. /* */
  89. /* FreeType now handles font files that have been compressed with the */
  90. /* 'compress' program. This is mostly used to parse many of the PCF */
  91. /* files that come with various X11 distributions. The implementation */
  92. /* uses NetBSD's `zopen' to partially uncompress the file on the fly */
  93. /* (see src/lzw/ftgzip.c). */
  94. /* */
  95. /* Define this macro if you want to enable this `feature'. */
  96. /* */
  97. #define FT_CONFIG_OPTION_USE_LZW
  98. /*************************************************************************/
  99. /* */
  100. /* Gzip-compressed file support. */
  101. /* */
  102. /* FreeType now handles font files that have been compressed with the */
  103. /* 'gzip' program. This is mostly used to parse many of the PCF files */
  104. /* that come with XFree86. The implementation uses `zlib' to */
  105. /* partially uncompress the file on the fly (see src/gzip/ftgzip.c). */
  106. /* */
  107. /* Define this macro if you want to enable this `feature'. See also */
  108. /* the macro FT_CONFIG_OPTION_SYSTEM_ZLIB below. */
  109. /* */
  110. #define FT_CONFIG_OPTION_USE_ZLIB
  111. /*************************************************************************/
  112. /* */
  113. /* ZLib library selection */
  114. /* */
  115. /* This macro is only used when FT_CONFIG_OPTION_USE_ZLIB is defined. */
  116. /* It allows FreeType's `ftgzip' component to link to the system's */
  117. /* installation of the ZLib library. This is useful on systems like */
  118. /* Unix or VMS where it generally is already available. */
  119. /* */
  120. /* If you let it undefined, the component will use its own copy */
  121. /* of the zlib sources instead. These have been modified to be */
  122. /* included directly within the component and *not* export external */
  123. /* function names. This allows you to link any program with FreeType */
  124. /* _and_ ZLib without linking conflicts. */
  125. /* */
  126. /* Do not #undef this macro here since the build system might define */
  127. /* it for certain configurations only. */
  128. /* */
  129. /* #define FT_CONFIG_OPTION_SYSTEM_ZLIB */
  130. /*************************************************************************/
  131. /* */
  132. /* DLL export compilation */
  133. /* */
  134. /* When compiling FreeType as a DLL, some systems/compilers need a */
  135. /* special keyword in front OR after the return type of function */
  136. /* declarations. */
  137. /* */
  138. /* Two macros are used within the FreeType source code to define */
  139. /* exported library functions: FT_EXPORT and FT_EXPORT_DEF. */
  140. /* */
  141. /* FT_EXPORT( return_type ) */
  142. /* */
  143. /* is used in a function declaration, as in */
  144. /* */
  145. /* FT_EXPORT( FT_Error ) */
  146. /* FT_Init_FreeType( FT_Library* alibrary ); */
  147. /* */
  148. /* */
  149. /* FT_EXPORT_DEF( return_type ) */
  150. /* */
  151. /* is used in a function definition, as in */
  152. /* */
  153. /* FT_EXPORT_DEF( FT_Error ) */
  154. /* FT_Init_FreeType( FT_Library* alibrary ) */
  155. /* { */
  156. /* ... some code ... */
  157. /* return FT_Err_Ok; */
  158. /* } */
  159. /* */
  160. /* You can provide your own implementation of FT_EXPORT and */
  161. /* FT_EXPORT_DEF here if you want. If you leave them undefined, they */
  162. /* will be later automatically defined as `extern return_type' to */
  163. /* allow normal compilation. */
  164. /* */
  165. /* Do not #undef these macros here since the build system might define */
  166. /* them for certain configurations only. */
  167. /* */
  168. /* #define FT_EXPORT(x) extern x */
  169. /* #define FT_EXPORT_DEF(x) x */
  170. /*************************************************************************/
  171. /* */
  172. /* Glyph Postscript Names handling */
  173. /* */
  174. /* By default, FreeType 2 is compiled with the `PSNames' module. This */
  175. /* module is in charge of converting a glyph name string into a */
  176. /* Unicode value, or return a Macintosh standard glyph name for the */
  177. /* use with the TrueType `post' table. */
  178. /* */
  179. /* Undefine this macro if you do not want `PSNames' compiled in your */
  180. /* build of FreeType. This has the following effects: */
  181. /* */
  182. /* - The TrueType driver will provide its own set of glyph names, */
  183. /* if you build it to support postscript names in the TrueType */
  184. /* `post' table. */
  185. /* */
  186. /* - The Type 1 driver will not be able to synthetize a Unicode */
  187. /* charmap out of the glyphs found in the fonts. */
  188. /* */
  189. /* You would normally undefine this configuration macro when building */
  190. /* a version of FreeType that doesn't contain a Type 1 or CFF driver. */
  191. /* */
  192. #define FT_CONFIG_OPTION_POSTSCRIPT_NAMES
  193. /*************************************************************************/
  194. /* */
  195. /* Postscript Names to Unicode Values support */
  196. /* */
  197. /* By default, FreeType 2 is built with the `PSNames' module compiled */
  198. /* in. Among other things, the module is used to convert a glyph name */
  199. /* into a Unicode value. This is especially useful in order to */
  200. /* synthetize on the fly a Unicode charmap from the CFF/Type 1 driver */
  201. /* through a big table named the `Adobe Glyph List' (AGL). */
  202. /* */
  203. /* Undefine this macro if you do not want the Adobe Glyph List */
  204. /* compiled in your `PSNames' module. The Type 1 driver will not be */
  205. /* able to synthetize a Unicode charmap out of the glyphs found in the */
  206. /* fonts. */
  207. /* */
  208. #define FT_CONFIG_OPTION_ADOBE_GLYPH_LIST
  209. /*************************************************************************/
  210. /* */
  211. /* Support for Mac fonts */
  212. /* */
  213. /* Define this macro if you want support for outline fonts in Mac */
  214. /* format (mac dfont, mac resource, macbinary containing a mac */
  215. /* resource) on non-Mac platforms. */
  216. /* */
  217. /* Note that the `FOND' resource isn't checked. */
  218. /* */
  219. #define FT_CONFIG_OPTION_MAC_FONTS
  220. /*************************************************************************/
  221. /* */
  222. /* Guessing methods to access embedded resource forks */
  223. /* */
  224. /* Enable extra Mac fonts support on non-Mac platforms (e.g. */
  225. /* GNU/Linux). */
  226. /* */
  227. /* Resource forks which include fonts data are stored sometimes in */
  228. /* locations which users or developers don't expected. In some cases, */
  229. /* resource forks start with some offset from the head of a file. In */
  230. /* other cases, the actual resource fork is stored in file different */
  231. /* from what the user specifies. If this option is activated, */
  232. /* FreeType tries to guess whether such offsets or different file */
  233. /* names must be used. */
  234. /* */
  235. /* Note that normal, direct access of resource forks is controlled via */
  236. /* the FT_CONFIG_OPTION_MAC_FONTS option. */
  237. /* */
  238. #ifdef FT_CONFIG_OPTION_MAC_FONTS
  239. #define FT_CONFIG_OPTION_GUESSING_EMBEDDED_RFORK
  240. #endif
  241. /*************************************************************************/
  242. /* */
  243. /* Allow the use of FT_Incremental_Interface to load typefaces that */
  244. /* contain no glyph data, but supply it via a callback function. */
  245. /* This allows FreeType to be used with the PostScript language, using */
  246. /* the GhostScript interpreter. */
  247. /* */
  248. /* #define FT_CONFIG_OPTION_INCREMENTAL */
  249. /*************************************************************************/
  250. /* */
  251. /* The size in bytes of the render pool used by the scan-line converter */
  252. /* to do all of its work. */
  253. /* */
  254. /* This must be greater than 4KByte. */
  255. /* */
  256. #define FT_RENDER_POOL_SIZE 16384L
  257. /*************************************************************************/
  258. /* */
  259. /* FT_MAX_MODULES */
  260. /* */
  261. /* The maximum number of modules that can be registered in a single */
  262. /* FreeType library object. 32 is the default. */
  263. /* */
  264. #define FT_MAX_MODULES 32
  265. /*************************************************************************/
  266. /* */
  267. /* Debug level */
  268. /* */
  269. /* FreeType can be compiled in debug or trace mode. In debug mode, */
  270. /* errors are reported through the `ftdebug' component. In trace */
  271. /* mode, additional messages are sent to the standard output during */
  272. /* execution. */
  273. /* */
  274. /* Define FT_DEBUG_LEVEL_ERROR to build the library in debug mode. */
  275. /* Define FT_DEBUG_LEVEL_TRACE to build it in trace mode. */
  276. /* */
  277. /* Don't define any of these macros to compile in `release' mode! */
  278. /* */
  279. /* Do not #undef these macros here since the build system might define */
  280. /* them for certain configurations only. */
  281. /* */
  282. /* #define FT_DEBUG_LEVEL_ERROR */
  283. /* #define FT_DEBUG_LEVEL_TRACE */
  284. /*************************************************************************/
  285. /* */
  286. /* Memory Debugging */
  287. /* */
  288. /* FreeType now comes with an integrated memory debugger that is */
  289. /* capable of detecting simple errors like memory leaks or double */
  290. /* deletes. To compile it within your build of the library, you */
  291. /* should define FT_DEBUG_MEMORY here. */
  292. /* */
  293. /* Note that the memory debugger is only activated at runtime when */
  294. /* when the _environment_ variable "FT2_DEBUG_MEMORY" is defined also! */
  295. /* */
  296. /* Do not #undef this macro here since the build system might define */
  297. /* it for certain configurations only. */
  298. /* */
  299. /* #define FT_DEBUG_MEMORY */
  300. /*************************************************************************/
  301. /* */
  302. /* Module errors */
  303. /* */
  304. /* If this macro is set (which is _not_ the default), the higher byte */
  305. /* of an error code gives the module in which the error has occurred, */
  306. /* while the lower byte is the real error code. */
  307. /* */
  308. /* Setting this macro makes sense for debugging purposes only, since */
  309. /* it would break source compatibility of certain programs that use */
  310. /* FreeType 2. */
  311. /* */
  312. /* More details can be found in the files ftmoderr.h and fterrors.h. */
  313. /* */
  314. #undef FT_CONFIG_OPTION_USE_MODULE_ERRORS
  315. /*************************************************************************/
  316. /*************************************************************************/
  317. /**** ****/
  318. /**** S F N T D R I V E R C O N F I G U R A T I O N ****/
  319. /**** ****/
  320. /*************************************************************************/
  321. /*************************************************************************/
  322. /*************************************************************************/
  323. /* */
  324. /* Define TT_CONFIG_OPTION_EMBEDDED_BITMAPS if you want to support */
  325. /* embedded bitmaps in all formats using the SFNT module (namely */
  326. /* TrueType & OpenType). */
  327. /* */
  328. #define TT_CONFIG_OPTION_EMBEDDED_BITMAPS
  329. /*************************************************************************/
  330. /* */
  331. /* Define TT_CONFIG_OPTION_POSTSCRIPT_NAMES if you want to be able to */
  332. /* load and enumerate the glyph Postscript names in a TrueType or */
  333. /* OpenType file. */
  334. /* */
  335. /* Note that when you do not compile the `PSNames' module by undefining */
  336. /* the above FT_CONFIG_OPTION_POSTSCRIPT_NAMES, the `sfnt' module will */
  337. /* contain additional code used to read the PS Names table from a font. */
  338. /* */
  339. /* (By default, the module uses `PSNames' to extract glyph names.) */
  340. /* */
  341. #define TT_CONFIG_OPTION_POSTSCRIPT_NAMES
  342. /*************************************************************************/
  343. /* */
  344. /* Define TT_CONFIG_OPTION_SFNT_NAMES if your applications need to */
  345. /* access the internal name table in a SFNT-based format like TrueType */
  346. /* or OpenType. The name table contains various strings used to */
  347. /* describe the font, like family name, copyright, version, etc. It */
  348. /* does not contain any glyph name though. */
  349. /* */
  350. /* Accessing SFNT names is done through the functions declared in */
  351. /* `freetype/ftnames.h'. */
  352. /* */
  353. #define TT_CONFIG_OPTION_SFNT_NAMES
  354. /*************************************************************************/
  355. /* */
  356. /* TrueType CMap support */
  357. /* */
  358. /* Here you can fine-tune which TrueType CMap table format shall be */
  359. /* supported. */
  360. #define TT_CONFIG_CMAP_FORMAT_0
  361. #define TT_CONFIG_CMAP_FORMAT_2
  362. #define TT_CONFIG_CMAP_FORMAT_4
  363. #define TT_CONFIG_CMAP_FORMAT_6
  364. #define TT_CONFIG_CMAP_FORMAT_8
  365. #define TT_CONFIG_CMAP_FORMAT_10
  366. #define TT_CONFIG_CMAP_FORMAT_12
  367. /*************************************************************************/
  368. /*************************************************************************/
  369. /**** ****/
  370. /**** 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 ****/
  371. /**** ****/
  372. /*************************************************************************/
  373. /*************************************************************************/
  374. /*************************************************************************/
  375. /* */
  376. /* Define TT_CONFIG_OPTION_BYTECODE_INTERPRETER if you want to compile */
  377. /* a bytecode interpreter in the TrueType driver. Note that there are */
  378. /* important patent issues related to the use of the interpreter. */
  379. /* */
  380. /* By undefining this, you will only compile the code necessary to load */
  381. /* TrueType glyphs without hinting. */
  382. /* */
  383. /* Do not #undef this macro here, since the build system might */
  384. /* define it for certain configurations only. */
  385. /* */
  386. /* #define TT_CONFIG_OPTION_BYTECODE_INTERPRETER */
  387. /*************************************************************************/
  388. /* */
  389. /* Define TT_CONFIG_OPTION_UNPATENTED_HINTING (in addition to */
  390. /* TT_CONFIG_OPTION_BYTECODE_INTERPRETER) to compile the unpatented */
  391. /* work-around hinting system. Note that for the moment, the algorithm */
  392. /* is only used when selected at runtime through the parameter tag */
  393. /* FT_PARAM_TAG_UNPATENTED_HINTING; or when the debug hook */
  394. /* FT_DEBUG_HOOK_UNPATENTED_HINTING is globally activated. */
  395. /* */
  396. #define TT_CONFIG_OPTION_UNPATENTED_HINTING
  397. /*************************************************************************/
  398. /* */
  399. /* Define TT_CONFIG_OPTION_INTERPRETER_SWITCH to compile the TrueType */
  400. /* bytecode interpreter with a huge switch statement, rather than a call */
  401. /* table. This results in smaller and faster code for a number of */
  402. /* architectures. */
  403. /* */
  404. /* Note however that on some compiler/processor combinations, undefining */
  405. /* this macro will generate faster, though larger, code. */
  406. /* */
  407. #define TT_CONFIG_OPTION_INTERPRETER_SWITCH
  408. /*************************************************************************/
  409. /* */
  410. /* Define TT_CONFIG_OPTION_COMPONENT_OFFSET_SCALED to compile the */
  411. /* TrueType glyph loader to use Apple's definition of how to handle */
  412. /* component offsets in composite glyphs. */
  413. /* */
  414. /* Apple and MS disagree on the default behavior of component offsets */
  415. /* in composites. Apple says that they should be scaled by the scale */
  416. /* factors in the transformation matrix (roughly, it's more complex) */
  417. /* while MS says they should not. OpenType defines two bits in the */
  418. /* composite flags array which can be used to disambiguate, but old */
  419. /* fonts will not have them. */
  420. /* */
  421. /* http://partners.adobe.com/asn/developer/opentype/glyf.html */
  422. /* http://fonts.apple.com/TTRefMan/RM06/Chap6glyf.html */
  423. /* */
  424. #undef TT_CONFIG_OPTION_COMPONENT_OFFSET_SCALED
  425. /*************************************************************************/
  426. /* */
  427. /* Define TT_CONFIG_OPTION_GX_VAR_SUPPORT if you want to include */
  428. /* support for Apple's distortable font technology (fvar, gvar, cvar, */
  429. /* and avar tables). This has many similarities to Type 1 Multiple */
  430. /* Masters support. */
  431. /* */
  432. #define TT_CONFIG_OPTION_GX_VAR_SUPPORT
  433. /*************************************************************************/
  434. /*************************************************************************/
  435. /**** ****/
  436. /**** T Y P E 1 D R I V E R C O N F I G U R A T I O N ****/
  437. /**** ****/
  438. /*************************************************************************/
  439. /*************************************************************************/
  440. /*************************************************************************/
  441. /* */
  442. /* T1_MAX_DICT_DEPTH is the maximal depth of nest dictionaries and */
  443. /* arrays in the Type 1 stream (see t1load.c). A minimum of 4 is */
  444. /* required. */
  445. /* */
  446. #define T1_MAX_DICT_DEPTH 5
  447. /*************************************************************************/
  448. /* */
  449. /* T1_MAX_SUBRS_CALLS details the maximum number of nested sub-routine */
  450. /* calls during glyph loading. */
  451. /* */
  452. #define T1_MAX_SUBRS_CALLS 16
  453. /*************************************************************************/
  454. /* */
  455. /* T1_MAX_CHARSTRING_OPERANDS is the charstring stack's capacity. A */
  456. /* minimum of 16 is required. */
  457. /* */
  458. /* The Chinese font MingTiEG-Medium (CNS 11643 character set) needs 256. */
  459. /* */
  460. #define T1_MAX_CHARSTRINGS_OPERANDS 256
  461. /*************************************************************************/
  462. /* */
  463. /* Define this configuration macro if you want to prevent the */
  464. /* compilation of `t1afm', which is in charge of reading Type 1 AFM */
  465. /* files into an existing face. Note that if set, the T1 driver will be */
  466. /* unable to produce kerning distances. */
  467. /* */
  468. #undef T1_CONFIG_OPTION_NO_AFM
  469. /*************************************************************************/
  470. /* */
  471. /* Define this configuration macro if you want to prevent the */
  472. /* compilation of the Multiple Masters font support in the Type 1 */
  473. /* driver. */
  474. /* */
  475. #undef T1_CONFIG_OPTION_NO_MM_SUPPORT
  476. /* */
  477. /*
  478. * This temporary macro is used to control various optimizations for
  479. * reducing the heap footprint of memory-mapped TrueType files.
  480. *
  481. */
  482. /* #define FT_OPTIMIZE_MEMORY */
  483. FT_END_HEADER
  484. #endif /* __FTOPTION_H__ */
  485. /* END */