Skip to main content

Variable: GtkFontChooserWidget

const GtkFontChooserWidget: "GtkFontChooserWidget"

Defined in: generated/jsx.ts:15721

The GtkFontChooserWidget widget lets the user select a font.

It is used in the GtkFontChooserDialog widget to provide a dialog for selecting fonts.

To set the font which is initially selected, use Gtk.FontChooser.set_font or Gtk.FontChooser.set_font_desc.

To get the selected font use Gtk.FontChooser.get_font or Gtk.FontChooser.get_font_desc.

To change the text which is shown in the preview area, use Gtk.FontChooser.set_preview_text.

CSS nodes

GtkFontChooserWidget has a single CSS node with name fontchooser.