Package: gtk

Class gtk:font-chooser-widget

Superclasses

Documented Subclasses

None

Direct Slots

tweak-action
The tweak-action property of type g:action (Read)
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.

Details

The gtk:font-chooser-widget widget lists the available fonts, styles and sizes, allowing the user to select a font. It is used in the gtk:font-chooser-dialog widget to provide a dialog for selecting fonts.

To set or to get the font which is initially selected, use the gtk:font-chooser-font or gtk:font-chooser-font-desc functions.

To change the text which is shown in the preview area, use the gtk:font-chooser-preview-text function.

CSS nodes

The gtk:font-chooser-widget class has a single CSS node with name fontchooser.

Warning

The gtk:font-chooser-widget implementation is deprecated since 4.10. Direct use of the gtk:font-chooser-widget widget is deprecated.
 

Inherited Slot Access Functions

See also

2024-5-22