Font

Added in version 1.18.

class Font(*args, **kwargs)

PangoCairoFont is an interface exported by fonts for use with Cairo.

The actual type of the font will depend on the particular font technology Cairo was compiled to use.

Methods

class Font
get_scaled_font() ScaledFont | None

Gets the cairo_scaled_font_t used by font. The scaled font can be referenced and kept using cairo_scaled_font_reference().

Added in version 1.18.