Gtk.FontChooserWidget¶
class — extends Widget, Accessible, Buildable, ConstraintTarget, FontChooser
:::warning Deprecated since 4.10 This API is deprecated. :::
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
FontChooser.set_font or FontChooser.set_font_desc.
To get the selected font use FontChooser.get_font or
FontChooser.get_font_desc.
To change the text which is shown in the preview area, use
FontChooser.set_preview_text.
CSS nodes¶
GtkFontChooserWidget has a single CSS node with name fontchooser.
Constructors¶
new¶
:::warning Deprecated since 4.10 This API is deprecated. :::
Creates a new GtkFontChooserWidget.
Properties¶
tweak_action¶
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 the selected font.
The action will be enabled or disabled depending on whether the selected font has any features or axes.