Package: gtk

Class gtk:font-dialog

Superclasses

gobject:object, common-lisp:standard-object, common-lisp:t

Documented Subclasses

None

Direct Slots

filter
The filter property of type gtk:filter (Read / Write)
Sets a filter to restrict what fonts are shown in the font chooser dialog.
font-map
The font-map property of type pango:font-map (Read / Write)
Sets a custom font map to select fonts from. A custom font map can be used to present application specific fonts instead of or in addition to the normal system fonts.
language
The language property of type pango:language (Read / Write)
The language for which the font features are selected.
modal
The modal property of type :boolean (Read / Write)
Whether the font chooser dialog is modal.
Default value: true
title
The title property of type :string (Read / Write)
The title that may be shown on the font chooser dialog that is presented by the gtk:font-dialog-choose-font function.
Default value: nil

Details

The gtk:font-dialog object collects the arguments that are needed to present a font chooser dialog to the user, such as a title for the dialog and whether it should be modal.

The dialog is shown with the gtk:font-dialog-choose-font function or its variants. This API follows the GIO async pattern, and the result can be obtained by calling the corresponding finish function, such as the gtk:font-dialog-choose-font-finish function.

See the gtk:font-dialog-button widget for a convenient control that uses the gtk:font-dialog object and presents the results.

Since 4.10
 

Returned by

Slot Access Functions

Inherited Slot Access Functions

See also

#2024-5-2