FontDescription¶
Qualified name: manimpango.fonts.FontDescription
- class FontDescription(family=None, size=None, style=None, weight=None, variant=None)¶
A
FontDescription
describes a font.This describes the characteristics of a font to load.
- Parameters
- _font_desc¶
Reference to the C-implementation of font description.
- Type
manimpango.fonts._font_desc._FontDescription
Methods
Parse a string and form
FontDescription
from it.- property family: str¶
The family name of the font.
The family name represents a family of related font styles, and will resolve to a particular family. It is also possible to use a comma separated list of family names for this field.
- classmethod from_string(string)¶
Parse a string and form
FontDescription
from it.See https://docs.gtk.org/Pango/type_func.FontDescription.from_string.html#description for the syntax of the string.
- Parameters
string (str) – The string to be parsed.
- Returns
The
FontDescription
that is based on the string.- Return type