Gtk.StyleContext.prototype.get_font

function get_font(state:Gtk.StateFlags):Pango.FontDescription {
    // Gjs wrapper for gtk_style_context_get_font()
}

Returns the font description for a given state. The returned object is const and will remain valid until the Gtk.changed signal happens.

Since 3.0

state

state to retrieve the font for

Returns

the Pango.FontDescription for the given state. This object is owned by GTK+ and should not be freed.