Method

GtkFontSelectionDialogset_font_name

Declaration [src]

gboolean
gtk_font_selection_dialog_set_font_name (
  GtkFontSelectionDialog* fsd,
  const gchar* fontname
)

Description [src]

Sets the currently selected font.

Deprecated since:3.2

Use GtkFontChooserDialog.

Parameters

fontname

Type: const gchar*

A font name like “Helvetica 12” or “Times Bold 18”

The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.

Return value

Type: gboolean

TRUE if the font selected in fsd is now the fontname specified, FALSE otherwise.