gtk.font_selection
Module for [FontSelection] class
Types 3
classFontSelection : gtk.box.Box
Methods
FontSelection self()Returns `this`, for use in `with` statements.FontSelectionGidBuilder builder()Get builder for [gtk.font_selection.FontSelection] Returns: New builder objectstring fontName() @propertyvoid fontName(string propval) @propertystring previewText() @propertyvoid previewText(string propval) @propertypango.font_face.FontFace getFace()Gets the #PangoFontFace representing the selected font group details (i.e. family, slant, weight, width, etc). Returns: A #PangoFontFace representing the selected font group details. The returned o...gtk.widget.Widget getFaceList()This returns the #GtkTreeView which lists all styles available for the selected font. For example, “Regular”, “Bold”, etc. Returns: A #GtkWidget that is part of fontselpango.font_family.FontFamily getFamily()Gets the #PangoFontFamily representing the selected font family. Returns: A #PangoFontFamily representing the selected font family. Font families are a collection of font faces. The returned object...gtk.widget.Widget getFamilyList()This returns the #GtkTreeView that lists font families, for example, “Sans”, “Serif”, etc. Returns: A #GtkWidget that is part of fontselstring getFontName()Gets the currently-selected font name.gtk.widget.Widget getPreviewEntry()This returns the #GtkEntry used to display the font as a preview. Returns: A #GtkWidget that is part of fontselstring getPreviewText()Gets the text displayed in the preview area. Returns: the text displayed in the preview area. This string is owned by the widget and should not be modified or freedint getSize()The selected font size. Returns: A n integer representing the selected font size, or -1 if no font size is selected.gtk.widget.Widget getSizeEntry()This returns the #GtkEntry used to allow the user to edit the font number manually instead of selecting it from the list of font sizes. Returns: A #GtkWidget that is part of fontselgtk.widget.Widget getSizeList()This returns the #GtkTreeView used to list font sizes. Returns: A #GtkWidget that is part of fontselbool setFontName(string fontname)Sets the currently-selected font.void setPreviewText(string text)Sets the text displayed in the preview area. The text is used to show how the selected font looks.classFontSelectionGidBuilderImpl(T) : gtk.box.BoxGidBuilderImpl!T
Fluent builder for [gtk.font_selection.FontSelection]
Methods