Basics
Guides
API Reference
Basics
Guides
API Reference
[447:14] static extends: object
Generated metadata helpers for FontDialog class surfaces.
properties ()
Returns property metadata for
FontDialog.
A list.[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.
GtkFontDialog (Handle = null)
Creates a new
GtkFontDialogobject.
Handle is an optional native handle or wrapper whose handle to adopt; when the native constructor is called.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
GObject.
A GObject 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 (object parent, object initial_value, object cancellable, user_data)
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.
parent is the parent window.initial_value is the initial value.cancellable is a cancellable to cancel the operation.callback is a callback to call when the operation is complete.user_data is data to pass to @callback.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.the selected [class@Pango.FontFace].choose_family (object parent, object initial_value, object cancellable, user_data)
Presents a font chooser dialog to the user. The font chooser dialog will be set up for selecting a font family.
parent is the parent window.initial_value is the initial value.cancellable is a cancellable to cancel the operation.callback is a callback to call when the operation is complete.user_data is data to pass to @callback.None.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.the selected [class@Pango.FontFamily].choose_font (object parent, object initial_value, object cancellable, user_data)
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 [method@Gtk.FontDialog.choose_font_and_features] instead.
parent is the parent window.initial_value is the font to select initially.cancellable is a cancellable to cancel the operation.callback is a callback to call when the operation is complete.user_data is data to pass to @callback.None.choose_font_and_features (object parent, object initial_value, object cancellable, user_data)
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.
parent is the parent window.initial_value is the font to select initially.cancellable is a cancellable to cancel the operation.callback is a callback to call when the operation is complete.user_data is data to pass to @callback.None.choose_font_and_features_finish (object result)
Finishes the [method@Gtk.FontDialog.choose_font_and_features] call. The selected font and features are returned in @font_desc and @font_features. Note that this function returns a [error@Gtk.DialogError.DISMISSED] error if the user cancels the dialog.
result is the result.font_desc is return location for font description.font_features is return location for font features.language is return location for the language.true if a font was selected.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.a [struct@Pango.FontDescription] describing the selected font.get_filter ()
Returns the filter that decides which fonts to display in the font chooser dialog.
the filter.get_font_map ()
Returns the fontmap from which fonts are selected, or
NULLfor the default fontmap.
the fontmap.get_language ()
Returns the language for which font features are applied.
the language for font features.get_modal ()
Returns whether the font chooser dialog blocks interaction with the parent window while it is presented.
true if the font chooser dialog is modal.get_title ()
Returns the title that will be shown on the font chooser dialog.
the title.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.
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.