Basics
Guides
API Reference
Basics
Guides
API Reference
[17:7] extends: object
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 [method@Gtk.FontDialog.choose_font] function or its variants. See
[class@Gtk.FontDialogButton] for a convenient control that uses
GtkFontDialog and presents the results.
FontDialog ()
Creates a new
GtkFontDialogobject.
toNativeHandle (Source)
Normalizes a constructor argument into a raw pointer carrier. Accepts a raw NativeHandle, a raw NativeBuffer returned from
fn.call(...), another generated wrapper exposinghandle(), or null. Returns null when the argument carries no pointer.
Source is the raw handle, raw buffer, wrapper, or null.A raw pointer carrier or null when no pointer is present.getLib ()
Returns the opened native library for this generated wrapper.
The opened native library.handle ()
Returns the wrapped NativeHandle.
The wrapped NativeHandle.isNull ()
Returns true when the wrapped handle is null.
A bool.describe ()
Returns a small string for debugging generated wrappers.
A string.asObject ()
Wraps this handle as
Object.
A Object object.getProperty (string Name)
Reads one generated property by name.
setProperty (string Name, Value)
Writes one generated property by name.
setFilter (object Value)
A filter to restrict what fonts are shown in the font chooser dialog.
Value is the new property value.None.setFontmap (object 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.
Value is the new property value.None.setLanguage (object Value)
The language for which the font features are selected.
Value is the new property value.None.setModal (bool Value)
Whether the font chooser dialog is modal.
Value is the new property value.None.setTitle (string Value)
A title that may be shown on the font chooser dialog that is presented by [method@Gtk.FontDialog.choose_font].
Value is the new property value.None.choose_face_finish (object result)
Finishes the [method@Gtk.FontDialog.choose_face] call. Note that this function returns a [error@Gtk.DialogError.DISMISSED] error if the user cancels the dialog.
result is the result.choose_family_finish (object result)
Finishes the [method@Gtk.FontDialog.choose_family] call. Note that this function returns a [error@Gtk.DialogError.DISMISSED] error if the user cancels the dialog.
result is the result.choose_font_finish (object result)
Finishes the [method@Gtk.FontDialog.choose_font] call. Note that this function returns a [error@Gtk.DialogError.DISMISSED] error if the user cancels the dialog.
result is the result.get_filter ()
Returns the filter that decides which fonts to display in the font chooser dialog.
get_font_map ()
Returns the fontmap from which fonts are selected, or
NULLfor the default fontmap.
get_language ()
Returns the language for which font features are applied.
get_modal ()
Returns whether the font chooser dialog blocks interaction with the parent window while it is presented.
get_title ()
Returns the title that will be shown on the font chooser dialog.
set_filter (object filter)
Adds a filter that decides which fonts to display in the font chooser dialog. The filter must be able to handle both
PangoFontFamilyandPangoFontFaceobjects.
filter is the filter.None.set_font_map (object fontmap)
Sets the fontmap from which fonts are selected. If @fontmap is
NULL, the default fontmap is used.
fontmap is the fontmap.None.set_language (object language)
Sets the language for which font features are applied.
language is the language for font features.None.set_modal (bool modal)
Sets whether the font chooser dialog blocks interaction with the parent window while it is presented.
modal is the new value.None.set_title (string title)
Sets the title that will be shown on the font chooser dialog.
title is the new title.None.[331:14] static extends: object
Generated metadata helpers for FontDialog class surfaces.
properties ()
Returns property metadata for
FontDialog.
A list.
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.