Method

GtkFontSelectionDialogget_font_name

deprecated: 3.2 

Declaration [src]

gchar*
gtk_font_selection_dialog_get_font_name (
  GtkFontSelectionDialog* fsd
)

Description [src]

Gets the currently-selected font name.

Note that this can be a different string than what you set with gtk_font_selection_dialog_set_font_name(), as the font selection widget may normalize font names and thus return a string with a different structure. For example, “Helvetica Italic Bold 12” could be normalized to “Helvetica Bold Italic 12”. Use pango_font_description_equal() if you want to compare two font descriptions.

Deprecated since: 3.2

Use GtkFontChooserDialog.

Return value

Type: gchar*

A string with the name of the current font, or NULL if no font is selected. You must free this string with g_free().

The caller of the method takes ownership of the returned data, and is responsible for freeing it.
The value is a NUL terminated UTF-8 string.