Gtk.FontButton.prototype.get_font_name
function get_font_name():String { // Gjs wrapper for gtk_font_button_get_font_name() }
Retrieves the name of the currently selected font. This name includes style and size information as well. If you want to render something with the font, use this string with Pango.font_description_from_string . If you're interested in peeking certain values (family name, style, size, weight) just query these properties from the Pango.FontDescription object.
Since 2.4
- Returns
an internal copy of the font name which must not be freed.