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
font | a font in fontmap |
scale | the scale factor to apply |
context | a [pango.context.Context] |
variations | font variations to use |
Returns
the modified font