It derives from <GObject>.
Asynchronous API to present a font chooser dialog.
<GtkFontDialog> collects the arguments that are
needed to present the dialog to the user, such as a title for the dialog
and whether it should be modal.
The dialog is shown with the font-dialog:choose-font function or its variants.
See <GtkFontDialogButton> for a
convenient control that uses <GtkFontDialog>
and presents the results.
A filter to restrict what fonts are shown in the font chooser dialog.
Its value is a <GtkFilter>, or #f.
Set it with (set! (font-dialog:filter self) value).
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.
Its value is a <PangoFontMap>, or #f.
Set it with (set! (font-dialog:font-map self) value).
The language for which the font features are selected.
Its value is a <PangoLanguage>, or
#f.
Set it with (set! (font-dialog:language self) value).
Whether the font chooser dialog is modal.
Its value is a boolean.
Set it with (set! (font-dialog:modal self) value).
A title that may be shown on the font chooser dialog that is presented
by font-dialog:choose-font.
Its value is a string, or #f.
Set it with (set! (font-dialog:title self) value).
Presents a font chooser dialog to the user.
The font chooser dialog will be set up for selecting a font face.
A font face represents a font family and style, but no specific font size.
Passed: a <GtkFontDialog>.
a font dialog
Passed, or left out: a <GtkWindow>, or #f.
the parent window
Passed, or left out: a <PangoFontFace>, or
#f.
the initial value
Passed, or left out: a <GCancellable>, or
#f.
a cancellable to cancel the operation
Passed, or left out: a procedure, or #f.
a callback to call when the operation is complete
See GAsyncReadyCallback for how it
is called.
Not passed: guile-gi supplies it.
data to pass to callback
Finishes the font-dialog:choose-face call.
Note that this function returns a Gtk.DialogError.DISMISSED error
if the user cancels the dialog.
Passed: a <GtkFontDialog>.
a font dialog
Passed: a <GAsyncResult>.
the result
Returned: a <PangoFontFace>.
the selected <PangoFontFace>
Presents a font chooser dialog to the user.
The font chooser dialog will be set up for selecting a font family.
Passed: a <GtkFontDialog>.
a font dialog
Passed, or left out: a <GtkWindow>, or #f.
the parent window
Passed, or left out: a <PangoFontFamily>,
or #f.
the initial value
Passed, or left out: a <GCancellable>, or
#f.
a cancellable to cancel the operation
Passed, or left out: a procedure, or #f.
a callback to call when the operation is complete
See GAsyncReadyCallback for how it
is called.
Not passed: guile-gi supplies it.
data to pass to callback
Finishes the font-dialog:choose-family call.
Note that this function returns a Gtk.DialogError.DISMISSED error
if the user cancels the dialog.
Passed: a <GtkFontDialog>.
a font dialog
Passed: a <GAsyncResult>.
the result
Returned: a <PangoFontFamily>.
the selected <PangoFontFamily>
Presents a font chooser dialog to the user.
The font chooser dialog will be set up for selecting a font.
If you want to let the user select font features as well, use
font-dialog:choose-font-and-features
instead.
Passed: a <GtkFontDialog>.
a font dialog
Passed, or left out: a <GtkWindow>, or #f.
the parent window
Passed, or left out: a
<PangoFontDescription>, or
#f.
the font to select initially
Passed, or left out: a <GCancellable>, or
#f.
a cancellable to cancel the operation
Passed, or left out: a procedure, or #f.
a callback to call when the operation is complete
See GAsyncReadyCallback for how it
is called.
Not passed: guile-gi supplies it.
data to pass to callback
Presents a font chooser dialog to the user.
The font chooser dialog will be set up for selecting a font and specify features for the selected font.
Font features affect how the font is rendered, for example enabling glyph variants or ligatures.
Passed: a <GtkFontDialog>.
a font dialog
Passed, or left out: a <GtkWindow>, or #f.
the parent window
Passed, or left out: a
<PangoFontDescription>, or
#f.
the font to select initially
Passed, or left out: a <GCancellable>, or
#f.
a cancellable to cancel the operation
Passed, or left out: a procedure, or #f.
a callback to call when the operation is complete
See GAsyncReadyCallback for how it
is called.
Not passed: guile-gi supplies it.
data to pass to callback
Finishes the font-dialog:choose-font-and-features call.
The selected font and features are returned in font-desc and font-features.
Note that this function returns a Gtk.DialogError.DISMISSED error
if the user cancels the dialog.
Passed: a <GtkFontDialog>.
a font dialog
Passed: a <GAsyncResult>.
the result
Returned: a boolean.
true if a font was selected
Returned: a <PangoFontDescription>.
return location for font description
Returned: a string.
return location for font features
Returned: a <PangoLanguage>.
return location for the language
Finishes the font-dialog:choose-font call.
Note that this function returns a Gtk.DialogError.DISMISSED error
if the user cancels the dialog.
Passed: a <GtkFontDialog>.
a font dialog
Passed: a <GAsyncResult>.
the result
Returned: a <PangoFontDescription>.
a <PangoFontDescription> describing
the selected font
Returns the filter that decides which fonts to display in the font chooser dialog.
Passed: a <GtkFontDialog>.
a font dialog
Returned: a <GtkFilter>, or #f.
the filter
Returns the fontmap from which fonts are selected, or NULL for
the default fontmap.
Passed: a <GtkFontDialog>.
a font dialog
Returned: a <PangoFontMap>, or #f.
the fontmap
Returns the language for which font features are applied.
Passed: a <GtkFontDialog>.
a font dialog
Returned: a <PangoLanguage>, or #f.
the language for font features
Returns whether the font chooser dialog blocks interaction with the parent window while it is presented.
Passed: a <GtkFontDialog>.
a font dialog
Returned: a boolean.
true if the font chooser dialog is modal
Returns the title that will be shown on the font chooser dialog.
Passed: a <GtkFontDialog>.
a font dialog
Returned: a string.
the title
Creates a new <GtkFontDialog> object.
Returned: a <GtkFontDialog>.
the new <GtkFontDialog>
Adds a filter that decides which fonts to display in the font chooser dialog.
The filter must be able to handle both
<PangoFontFamily> and
<PangoFontFace> objects.
Passed: a <GtkFontDialog>.
a font dialog
Passed, or left out: a <GtkFilter>, or #f.
the filter
Sets the fontmap from which fonts are selected.
If fontmap is NULL, the default fontmap is used.
Passed: a <GtkFontDialog>.
a font dialog
Passed, or left out: a <PangoFontMap>, or
#f.
the fontmap
Sets the language for which font features are applied.
Passed: a <GtkFontDialog>.
a font dialog
Passed: a <PangoLanguage>.
the language for font features
Sets whether the font chooser dialog blocks interaction with the parent window while it is presented.
Passed: a <GtkFontDialog>.
a font dialog
Passed: a boolean.
the new value
Sets the title that will be shown on the font chooser dialog.
Passed: a <GtkFontDialog>.
a font dialog
Passed: a string.
the new title