FontConfigs class

FontConfigs class

Specifies font settings

The FontConfigs type exposes the following members:

Constructors

ConstructorDescription
__init__(self)Constructs a new instance of 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
is_font_available(, font_name)Indicate whether the font is available.
get_font_file_data_info(, font_name, is_bold, is_italic, is_exact_style)Get data infomation of font file data.
set_font_substitutes(, original_font_name, substitute_font_names)Font substitute names for given original font name.
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)Sets the fonts folders
set_font_sources(, sources)Sets the fonts sources.
get_font_sources()Gets a copy of the array that contains the list of sources

See Also