override_font


Description:

[ Version ( deprecated = true , deprecated_since = "3.16" , since = "3.0" ) ]
public void override_font (FontDescription? font_desc)

Warning: override_font is deprecated since 3.16.

Sets the font to use for a widget.

Note:

This function is not useful in the context of CSS-based rendering. If you wish to change the font a widget uses to render its text you should use a custom CSS style, through an application-specific StyleProvider and a CSS style class.

All other style values are left untouched. See override_color.

Parameters:

this

a Widget

font_desc

the font description to use, or null to undo the effect of previous calls to override_font