getFont

open fun getFont(): String?(source)

⚠️ Deprecated ⚠️

This is deprecated since version 4.10.

Use class@Gtk.FontDialog and class@Gtk.FontDialogButton instead

Gets the currently-selected font name.

Note that this can be a different string than what you set with method@Gtk.FontChooser.set_font, as the font chooser widget may normalize font names and thus return a string with a different structure. For example, “Helvetica Italic Bold 12” could be normalized to “Helvetica Bold Italic 12”.

Use method@Pango.FontDescription.equal if you want to compare two font descriptions.

Return

A string with the name of the current font