FontChooserWidget
Deprecated since version 4.10: Direct use of GtkFontChooserWidget
is deprecated.
Superclasses: Widget
, InitiallyUnowned
, Object
Implemented Interfaces: Accessible
, Buildable
, ConstraintTarget
, FontChooser
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
set_font
or set_font_desc
.
To get the selected font use get_font
or
get_font_desc
.
To change the text which is shown in the preview area, use
set_preview_text
.
CSS nodes
GtkFontChooserWidget
has a single CSS node with name fontchooser.
Constructors
Properties
- class FontChooserWidget
- props.tweak_action: 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.