FontMap.reloadFont

Returns a new font that is like font, except that its size is multiplied by scale, its backend-dependent configuration (e.g. cairo font options) is replaced by the one in context, and its variations are replaced by variations.

class FontMap
reloadFont

Parameters

font pango.font.Font

a font in fontmap

scale double

the scale factor to apply

context pango.context.Context
variations string

font variations to use

Return Value

Type: pango.font.Font

the modified font