Method

GtkWidgetoverride_font

deprecated: 3.16 since: 3.0

Declaration [src]

void
gtk_widget_override_font (
  GtkWidget* widget,
  const PangoFontDescription* font_desc
)

Description [src]

Sets the font to use for a widget. All other style values are left untouched. See gtk_widget_override_color().

Available since: 3.0

Deprecated since: 3.16

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 GtkStyleProvider and a CSS style class.

Parameters

font_desc

Type: PangoFontDescription

The font description to use, or NULL to undo the effect of previous calls to gtk_widget_override_font().

The argument can be NULL.
The data is owned by the caller of the method.