# config: Configure fontTools

Define all configuration options that can affect the working of fontTools modules. E.g. optimization levels of varLib IUP, otlLib GPOS compression level, etc. If this file gets too big, split it into smaller files per-module.

An instance of the Config class can be attached to a TTFont object, so that the various modules can access their configuration options from it.

class fontTools.config.Config(values: AbstractConfig | Dict[Option | str, Any] = {}, parse_values: bool = False, skip_unknown: bool = False)

  Bases: `AbstractConfig`

  options: ClassVar[Options] = Options({ 'fontTools.otlLib.optimize.gpos:COMPRESSION_LEVEL': Option(default=0, ...), 'fontTools.ttLib.tables.otBase:USE_HARFBUZZ_REPACKER': Option(default=None, ...), 'fontTools.otlLib.builder:WRITE_GPOS7': Option(default=False, ...), 'fontTools.ttLib:OPTIMIZE_FONT_SPEED': Option(default=False, ...), })