GtkFontSelectionDialog
a dialog box for selecting fonts.
The #GtkFontSelectionDialog widget is a dialog box for selecting a font.
To set the font which is initially selected, use
gtk_font_selection_dialog_set_font_name().
To get the selected font use gtk_font_selection_dialog_get_font()
or gtk_font_selection_dialog_get_font_name().
To change the text which is shown in the preview area, use
gtk_font_selection_dialog_set_preview_text().
#GtkFontSelection
the underlying widget for selecting
fonts.
#GtkDialog
the parent class of GtkFontSelectionDialog
@ok_button: The OK button of the dialog
@apply_button: The Apply button of the dialog. This button is hidden
by default but you can show/hide it
@cancel_button: The Cancel button of the dialog
Creates a new #GtkFontSelectionDialog.
@title: the title of the dialog box.
@Returns: a new #GtkFontSelectionDialog.
Gets the currently-selected font.
@fsd: a #GtkFontSelectionDialog.
@Returns: the currently-selected font, or %NULL if no font is selected.
Gets the currently-selected font name.
@fsd: a #GtkFontSelectionDialog.
@Returns: the currently-selected font name, or %NULL if no font is selected.
Sets the currently-selected font.
@fsd: a #GtkFontSelectionDialog.
@fontname: a fontname.
@Returns: %TRUE if the font was found.
Gets the text displayed in the preview area.
@fsd: a #GtkFontSelectionDialog.
@Returns: the text displayed in the preview area. This string is owned
by the widget and should not be modified or freed.
Sets the text displayed in the preview area.
@fsd: a #GtkFontSelectionDialog.
@text: the text to display in the preview area.