Skip to content

registered_fonts

registered_fonts() -> dict[str, list[FontFace]]

Return the registered font families and their faces.

Returns:

  • dict of str to list of str –

    Family name to its faces ("plain", "bold", "italic", "bold_italic"), in registration order.

Examples:

>>> from ggrust import registered_fonts
>>> fonts = registered_fonts()
>>> isinstance(fonts, dict)
True