Gtk.FontChooser
const Gtk = imports.gi.Gtk;
let font_chooser = new Gtk.FontChooser({
font: value,
font_desc: value,
preview_text: value,
show_preview_entry: value,
});
Gtk.FontChooser is an interface that can be implemented by widgets displaying the list of fonts. In GTK+, the main objects that implement this interface are Gtk.FontChooserWidget, Gtk.FontChooserDialog and Gtk.FontButton.
Hierarchy
- Gtk.FontChooser
Methods
- Gtk.FontChooser.prototype.get_font
- Gtk.FontChooser.prototype.get_font_desc
- Gtk.FontChooser.prototype.get_font_face
- Gtk.FontChooser.prototype.get_font_family
- Gtk.FontChooser.prototype.get_font_size
- Gtk.FontChooser.prototype.get_preview_text
- Gtk.FontChooser.prototype.get_show_preview_entry
- Gtk.FontChooser.prototype.set_filter_func
- Gtk.FontChooser.prototype.set_font
- Gtk.FontChooser.prototype.set_font_desc
- Gtk.FontChooser.prototype.set_preview_text
- Gtk.FontChooser.prototype.set_show_preview_entry