Context.setScaledFont

Replaces the current font face, font matrix, and font options in the #cairo_t with those of the #cairo_scaled_font_t. Except for some translation, the current CTM of the #cairo_t should be the same as that of the #cairo_scaled_font_t, which can be accessed using cairo.scaled_font.ScaledFont.getCtm.

class Context
void
setScaledFont

Parameters

scaledFont cairo.scaled_font.ScaledFont

a #cairo_scaled_font_t