choose_font_and_features


Description:

public async bool choose_font_and_features (Window? parent, FontDescription? initial_value, Cancellable? cancellable, out FontDescription font_desc, out string font_features, out Language language) throws Error

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

Font features affect how the font is rendered, for example enabling glyph variants or ligatures.

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

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