FontConfigs class

FontConfigs class

Specifies font settings

The FontConfigs type exposes the following members:

Constructors

ConstructorDescription
FontConfigs()

Properties

PropertyDescription
default_font_nameGets or sets the default font name.
prefer_system_font_substitutesIndicate whether to use system font substitutes first or not when a font is not presented and the substitute of this font is not set.
e.g. On Ubuntu, “Arial” font is generally substituted by “Liberation Sans”.
Default value is false.

Methods

MethodDescription
set_font_substitutes(original_font_name, substitute_font_names)
get_font_substitutes(original_font_name)Returns array containing font substitute names to be used if original font is not presented.
set_font_folder(font_folder, recursive)Sets the fonts folder
set_font_folders(font_folders, recursive)
set_font_sources(sources)
get_font_sources()Gets a copy of the array that contains the list of sources

See Also