Method

GtkFontButtonget_font_name

deprecated: 3.22 since: 2.4

Declaration [src]

const gchar*
gtk_font_button_get_font_name (
  GtkFontButton* font_button
)

Description [src]

Retrieves the name of the currently selected font. This name includes style and size information as well. If you want to render something with the font, use this string with pango_font_description_from_string() . If you’re interested in peeking certain values (family name, style, size, weight) just query these properties from the PangoFontDescription object.

Available since: 2.4

Deprecated since: 3.22

Use gtk_font_chooser_get_font() instead.

Return value

Type: const gchar*

An internal copy of the font name which must not be freed.

The returned data is owned by the instance.
The value is a NUL terminated UTF-8 string.