FontMap.reloadFont

pango.font.Font reloadFont(pango.font.Font font, double scale, pango.context.Context context = null, string variations = null)

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.

Parameters

fonta font in fontmap
scalethe scale factor to apply
contexta [pango.context.Context]
variationsfont variations to use

Returns

the modified font