Skip to main content

3rd Party Software: FreeType2 Configuration

3rd party software FreeType2 is used by the Candera Engine and can be configured in CMake like this:

Name Description Possible values
FREETYPE2_CUSTOMIZE Enable or disable FreeType2 customization. ON/OFF
FREETYPE2_FORCE_DEFAULT_CONFIG Set all Freetype2 configuration flags such that the outcome is equivalent to using the "freetype/include/config/" files. ON/OFF
FREETYPE2_FORCE_CANDERA_CONFIG Set all Freetype2 configuration flags such that the outcome is equivalent to using "Candera/TextEngine/FreeType/FtCda*.h" files. ON/OFF
FREETYPE2_FORCE_EMPTY_CONFIG Clears all Freetype2 configuration flags. ON/OFF
FREETYPE2_FORCE_LIGHT_CONFIG Set all Freetype2 configuration flags to a minimal setting that provides support for using TrueType fonts and anti-aliased rendering with a minimal code size. ON/OFF

The "light" configuration (FREETYPE2_FORCE_LIGHT_CONFIG) does not support rendering of Opentype fonts. However, a rather minimal configuration with Opentype support is possible by enabling the following flags on top of the "light" configuration:
     FREETYPE2_MODLOAD_DRIVER_CFF
     FREETYPE2_MODLOAD_MODULE_PSAUX
     FREETYPE2_MODLOAD_MODULE_PSHINTER
     FREETYPE2_MODLOAD_MODULE_PSNAMES
     FREETYPE2_OPT_FT_CONFIG_OPTION_POSTSCRIPT_NAMES
     FREETYPE2_OPT_TT_CONFIG_OPTION_POSTSCRIPT_NAMES The exact features are font specific. The fastest way to evaluate the minimal module set requirements for a font is to get in contact with the font designer.