Method

GtkStyleContextget_font

Declaration [src]

const PangoFontDescription*
gtk_style_context_get_font (
  GtkStyleContext* context,
  GtkStateFlags state
)

Description [src]

Returns the font description for a given state. The returned object is const and will remain valid until the GtkStyleContext::changed signal happens.

Available since:3.0
Deprecated since:3.8

Use gtk_style_context_get() for “font” or subproperties instead.

Parameters

state GtkStateFlags
 

State to retrieve the font for.

Return value

Returns: PangoFontDescription
 

The PangoFontDescription for the given state. This object is owned by GTK+ and should not be freed.

 The data is owned by the instance.