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

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.

Parameters:

this

a font dialog

parent

the parent window

initial_value

the font to select initially

cancellable

a cancellable to cancel the operation

callback

a callback to call when the operation is complete

user_data

data to pass to callback