FontDialog.chooseFont

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 gtk.font_dialog.FontDialog.chooseFontFinish to obtain the result.

If you want to let the user select font features as well, use gtk.font_dialog.FontDialog.chooseFontAndFeatures instead.

Parameters

parent gtk.window.Window
initialValue pango.font_description.FontDescription

the font to select initially

cancellable gio.cancellable.Cancellable

a gio.cancellable.Cancellable to cancel the operation

callback gio.types.AsyncReadyCallback

a callback to call when the operation is complete