choose_font


Description:

public async FontDescription? choose_font (Window? parent, FontDescription? initial_value, Cancellable? cancellable) throws Error

This function initiates a font selection operation by presenting a dialog to the user for selecting a font.

The callback will be called when the dialog is dismissed. It should call [method@Gtk.FontDialog.choose_font_finish] to obtain the result.

If you want to let the user select font features as well, use [method@Gtk.FontDialog.choose_font_and_features] instead.

Parameters:

this

a `GtkFontDialog`

parent

the parent `GtkWindow`

initial_value

the font to select initially

cancellable

a `GCancellable` to cancel the operation

callback

a callback to call when the operation is complete

user_data

data to pass to callback