GtkFontChooserWidget

The #GtkFontChooserWidget widget lists the available fonts, styles and sizes, allowing the user to select a font. It is used in the #GtkFontChooserDialog widget to provide a dialog box for selecting fonts.

To set the font which is initially selected, use gtk.font_chooser.FontChooser.setFont or gtk.font_chooser.FontChooser.setFontDesc.

To get the selected font use gtk.font_chooser.FontChooser.getFont or gtk.font_chooser.FontChooser.getFontDesc.

To change the text which is shown in the preview area, use gtk.font_chooser.FontChooser.setPreviewText.

CSS nodes

GtkFontChooserWidget has a single CSS node with name fontchooser.

Members

Variables

parentInstance
GtkBox parentInstance;
priv
GtkFontChooserWidgetPrivate* priv;