Gtk.FontChooserWidget
const Gtk = imports.gi.Gtk; let font_chooser_widget = new Gtk.FontChooserWidget();
The Gtk.FontChooserWidget widget lists the available fonts, styles and sizes, allowing the user to select a font. It is used in the Gtk.FontChooserDialog widget to provide a dialog box for selecting fonts.
To set the font which is initially selected, use Gtk.FontChooser.prototype.set_font or Gtk.FontChooser.prototype.set_font_desc.
To get the selected font use Gtk.FontChooser.prototype.get_font or Gtk.FontChooser.prototype.get_font_desc.
To change the text which is shown in the preview area, use Gtk.FontChooser.prototype.set_preview_text.
Hierarchy
-
GObject.Object
-
GObject.InitiallyUnowned
-
Gtk.Widget
-
Gtk.Container
-
Gtk.Box
- Gtk.FontChooserWidget
-
-
-
-