Skip to main content

FreeType flags

  • FREETYPE2_CONFIGURE_CACHE enables or disables freetype cache configuration.
  • FREETYPE2_FACE_COUNT_MAX sets the maximum number of faces supported by cache and must be a constant integral C expression.
  • FREETYPE2_FACE_SIZE_COUNT_MAX sets the maximum number of sizes supported by cache and must be a constant integral C expression.
  • FREETYPE2_GLYPH_CACHE_SIZE defines the size of the buffer to cache glyph bitmaps and must be a constant integral C expression.
  • FREETYPE2_MODLOAD_DRIVER_BDF defines whether the BDF (Bitmap Distribution Format) font driver module is loaded or not.
  • FREETYPE2_MODLOAD_DRIVER_CFF defines whether the CFF font driver module is loaded or not.
  • FREETYPE2_MODLOAD_DRIVER_PCF defines whether the PCF font driver module is loaded or not.
  • FREETYPE2_MODLOAD_DRIVER_PFR defines whether the PFR font driver module is loaded or not.
  • FREETYPE2_MODLOAD_DRIVER_T1 defines whether the T1 font driver module is loaded or not.
  • FREETYPE2_MODLOAD_DRIVER_T1CID defines whether the T1CID font driver module is loaded or not.
  • FREETYPE2_MODLOAD_DRIVER_T42 defines whether the T42 font driver module is loaded or not.
  • FREETYPE2_MODLOAD_DRIVER_TT defines whether the TT font driver module is loaded or not.
  • FREETYPE2_MODLOAD_DRIVER_WINFNT defines whether the WINFNT font driver module is loaded or not.
  • FREETYPE2_MODLOAD_MODULE_AUTOFIT defines whether the autofitter (auto-hinter) module is loaded or not.
  • FREETYPE2_MODLOAD_MODULE_PSAUX defines whether the helper module psaux is loaded or not. 
  • FREETYPE2_MODLOAD_MODULE_PSHINTER defines whether the module pshinter is loaded or not.
  • FREETYPE2_MODLOAD_MODULE_PSNAMES defines whether the helper module psnames is loaded or not.
  • FREETYPE2_MODLOAD_MODULE_SFNT defines whether the helper module sfnt is loaded or not.
  • FREETYPE2_MODLOAD_RENDERER_FT_RASTER1 defines whether the renderer module raster1 is loaded or not.
  • FREETYPE2_MODLOAD_RENDERER_FT_SMOOTH defines whether the renderer module smooth is loaded or not.
  • FREETYPE2_MODLOAD_RENDERER_FT_SMOOTH_LCD defines whether the renderer module smooth_lcd is loaded or not.
  • FREETYPE2_MODLOAD_RENDERER_FT_SMOOTH_LCDV defines whether the renderer module smooth_lcdv is loaded or not.
  • FREETYPE2_OPT_AF_CONFIG_OPTION_CJK compile autofit module with CJK (Chinese, Japanese, Korean) script support.
  • FREETYPE2_OPT_AF_CONFIG_OPTION_INDIC compile autofit module with fallback Indic script support.                 
  • FREETYPE2_OPT_AF_CONFIG_OPTION_USE_WARPER compile autofit module with warp hinting.
  • FREETYPE2_OPT_CFF_CONFIG_OPTION_DARKENING_PARAMETER_X1 set the default X value for the first control point that define the stem darkening behavior of the CFF engine.
  • FREETYPE2_OPT_CFF_CONFIG_OPTION_DARKENING_PARAMETER_X2 set the default X value for the second control point that define the stem darkening behavior of the CFF engine.
  • FREETYPE2_OPT_CFF_CONFIG_OPTION_DARKENING_PARAMETER_X3 set the default X value for the third control point that define the stem darkening behavior of the CFF engine.
  • FREETYPE2_OPT_CFF_CONFIG_OPTION_DARKENING_PARAMETER_X4 set the default X value for the forth control point that define the stem darkening behavior of the CFF engine.
  • FREETYPE2_OPT_CFF_CONFIG_OPTION_DARKENING_PARAMETER_Y1 set the default Y value for the first control point that define the stem darkening behavior of the CFF engine.
  • FREETYPE2_OPT_CFF_CONFIG_OPTION_DARKENING_PARAMETER_Y2 set the default Y value for the second control point that define the stem darkening behavior of the CFF engine.
  • FREETYPE2_OPT_CFF_CONFIG_OPTION_DARKENING_PARAMETER_Y3 set the default Y value for the third control point that define the stem darkening behavior of the CFF engine.
  • FREETYPE2_OPT_CFF_CONFIG_OPTION_DARKENING_PARAMETER_Y4 set the default Y value for the forth control point that define the stem darkening behavior of the CFF engine.    
  • FREETYPE2_OPT_FT_CONFIG_OPTION_ADOBE_GLYPH_LIST enables the compilation of 'PSNames' with Adobe Glyph List.
  • FREETYPE2_OPT_FT_CONFIG_OPTION_DISABLE_STREAM_SUPPORT define to disable the use of file stream functions and types, FILE,fopen() etc. Enables the use of smaller system libraries on embedded systems that have multiple system libraries, some with or without file stream support, in the cases where file stream support is not necessary such as memory loading of font files.
  • FREETYPE2_OPT_FT_CONFIG_OPTION_FORCE_INT64 enables the usage of 64-bit integers data types when __STDC__ macro is defined.
  • FREETYPE2_OPT_FT_CONFIG_OPTION_INCREMENTAL allows the use of FT_Incremental_Interface to load typefaces that contain no glyph data, but supply it via a callback function.
  • FREETYPE2_OPT_FT_CONFIG_OPTION_INLINE_MULFIX enables the usage of an inlined assembler version of the `FT_MulFix' function.
  • FREETYPE2_OPT_FT_CONFIG_OPTION_MAC_FONTS enables support for outline fonts in Mac format (mac dfont, mac resource, macbinary containing a mac resource) on non-Mac platforms.
  • FREETYPE2_OPT_FT_CONFIG_OPTION_NO_ASSEMBLER prevents the usage of an assembler version of performance-critical functions (e.g. FT_MulFix).
  • FREETYPE2_OPT_FT_CONFIG_OPTION_OLD_INTERNALS this macro is obsolete.  Support has been removed in FreeType version 2.5.
  • FREETYPE2_OPT_FT_CONFIG_OPTION_PIC if set FreeType2 will avoid creating constants that require address fixups.
  • FREETYPE2_OPT_FT_CONFIG_OPTION_POSTSCRIPT_NAMES defines whether or not to load and enumerate the glyph Postscript names in a TrueType or OpenType file.
  • FREETYPE2_OPT_FT_CONFIG_OPTION_SUBPIXEL_RENDERING activate LCD rendering technology similar to ClearType in the build of the library.
  • FREETYPE2_OPT_FT_CONFIG_OPTION_SYSTEM_ZLIB allows FreeType's 'ftgzip' component to link to the system's installation of the ZLib library.
  • FREETYPE2_OPT_FT_CONFIG_OPTION_USE_BZIP2 enables FreeType to handle font files that have been compressed with the 'bzip2' program.
  • FREETYPE2_OPT_FT_CONFIG_OPTION_USE_HARFBUZZ enables FreeType to use the HarfBuzz library to improve auto-hinting of OpenType fonts.
  • FREETYPE2_OPT_FT_CONFIG_OPTION_USE_LZW enables FreeType to handle font files that have been compressed with the ‘compress’ program.
  • FREETYPE2_OPT_FT_CONFIG_OPTION_USE_MODULE_ERRORS if enabled change the error codes so the higher byte gives the module in which the error has occurred, while the lower byte is the real error code.
  • FREETYPE2_OPT_FT_CONFIG_OPTION_USE_PNG enables FreeType to handle the loading of color bitmap glyphs in the PNG format.
  • FREETYPE2_OPT_FT_CONFIG_OPTION_USE_ZLIB enables FreeType to handle font files that have been compressed with the 'gzip' program.
  • FREETYPE2_OPT_FT_DEBUG_AUTOFIT if defined, FreeType provides some means to control the autofitter behaviour for debugging purposes with global boolean variables.
  • FREETYPE2_OPT_FT_DEBUG_LEVEL_ERROR enables the build of FreeType library in debug mode. FREETYPE2_OPT_FT_DEBUG_LEVEL_TRACE enables the build of FreeType library in trace mode.
  • FREETYPE2_OPT_FT_DEBUG_MEMORY enables the compilation of FreeType library with an integrated memory debugger that is capable of detecting simple errors like memory leaks or double deletes.
  • FREETYPE2_OPT_FT_MAX_MODULES defines the maximum number of modules that can be registered in a single FreeType library object (32 is the default).
  • FREETYPE2_OPT_FT_RENDER_POOL_SIZE defines the size in bytes of the render pool used by the scan-line converter to do all of its work.
  • FREETYPE2_OPT_T1_CONFIG_OPTION_NO_AFM prevents the compilation of ‘t1afm’, which is in charge of reading Type 1 AFM files into an existing face.
  • FREETYPE2_OPT_T1_CONFIG_OPTION_NO_MM_SUPPORT prevents the compilation of the Multiple Masters font support in the Type 1 driver.
  • FREETYPE2_OPT_T1_MAX_CHARSTRINGS_OPERANDS defines the charstring stack's capacity (minimum 16 is required).
  • FREETYPE2_OPT_T1_MAX_DICT_DEPTH defines the maximum depth of nest dictionaries and arrays in the Type 1 stream (minimum 4 is required).
  • FREETYPE2_OPT_T1_MAX_SUBRS_CALLS defines the maximum number of nested sub-routine calls during glyph loading.
  • FREETYPE2_OPT_TT_CONFIG_CMAP_FORMAT_0 enables support for TrueType CMap table format 0.
  • FREETYPE2_OPT_TT_CONFIG_CMAP_FORMAT_10 enables support for TrueType CMap table format 10.
  • FREETYPE2_OPT_TT_CONFIG_CMAP_FORMAT_12 enables support for TrueType CMap table format 12.
  • FREETYPE2_OPT_TT_CONFIG_CMAP_FORMAT_13 enables support for TrueType CMap table format 13.
  • FREETYPE2_OPT_TT_CONFIG_CMAP_FORMAT_14 enables support for TrueType CMap table format 14.
  • FREETYPE2_OPT_TT_CONFIG_CMAP_FORMAT_2 enables support for TrueType CMap table format 2.
  • FREETYPE2_OPT_TT_CONFIG_CMAP_FORMAT_4 enables support for TrueType CMap table format 4.
  • FREETYPE2_OPT_TT_CONFIG_CMAP_FORMAT_6 enables support for TrueType CMap table format 6.
  • FREETYPE2_OPT_TT_CONFIG_CMAP_FORMAT_8 enables support for TrueType CMap table format 8.
  • FREETYPE2_OPT_TT_CONFIG_OPTION_BDF defines whether to include or not support for an embedded ‘BDF’ table within SFNT-based bitmap formats.
  • FREETYPE2_OPT_TT_CONFIG_OPTION_BYTECODE_INTERPRETER defines whether the TrueType driver should be compiled or not with a bytecode interpreter.
  • FREETYPE2_OPT_TT_CONFIG_OPTION_COMPONENT_OFFSET_SCALED defines whether to use or not the Apple's definition of how to handle component offsets in composite glyphs while compiling the TrueType glyph loader. 
  • FREETYPE2_OPT_TT_CONFIG_OPTION_EMBEDDED_BITMAPS defines whether to support or not embedded bitmaps in all formats using the SFNT module (namely TrueType & OpenType).
  • FREETYPE2_OPT_TT_CONFIG_OPTION_GX_VAR_SUPPORT defines whether to include or not support for Apple's distortable font technology (fvar, gvar, cvar, and avar tables).
  • FREETYPE2_OPT_TT_CONFIG_OPTION_MAX_RUNNABLE_OPCODES defines the maximum number of bytecode instructions executed for a single run of the bytecode interpreter, needed to prevent infinite loops. 
  • FREETYPE2_OPT_TT_CONFIG_OPTION_POSTSCRIPT_NAMES defines whether or not to load and enumerate the glyph Postscript names in a TrueType or OpenType file.
  • FREETYPE2_OPT_TT_CONFIG_OPTION_SFNT_NAMES enables the application to access the internal name table in a SFNT-based format like TrueType or OpenType. 
    FREETYPE2_OPT_TT_CONFIG_OPTION_SUBPIXEL_HINTING defines whether to compile or not subpixel hinting support into the TrueType driver.