gtk.font_chooser_widget

Module for FontChooserWidget class

Types 3

The gtk.font_chooser_widget.FontChooserWidget widget lets the user select a font.

It is used in the gtk.font_chooser_dialog.FontChooserDialog widget to provide a dialog 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

gtk.font_chooser_widget.FontChooserWidget has a single CSS node with name fontchooser.

Deprecated

Direct use of gtk.font_chooser_widget.FontChooserWidget is deprecated.
Methods
GType _gType() @property
FontChooserWidget self()Returns `this`, for use in `with` statements.
FontChooserWidgetGidBuilder builder()Get builder for [gtk.font_chooser_widget.FontChooserWidget] Returns: New builder object
gio.action.Action tweakAction() @propertyGet `tweakAction` property. Returns: A toggle action that can be used to switch to the tweak page of the font chooser widget, which lets the user tweak the OpenType features and variation axes of t...
Constructors
this(void * ptr, Flag!"Take" take)
this()Creates a new [gtk.font_chooser_widget.FontChooserWidget]. Returns: a new [gtk.font_chooser_widget.FontChooserWidget]