FontChooserT

GtkFontChooser is an interface that can be implemented by widgets for choosing fonts.

In GTK, the main objects that implement this interface are [class@Gtk.FontChooserWidget], [class@Gtk.FontChooserDialog] and [class@Gtk.FontButton].

Members

Functions

addOnFontActivated
gulong addOnFontActivated(void delegate(string, FontChooserIF) dlg, ConnectFlags connectFlags)

Emitted when a font is activated.

getFont
string getFont()

Gets the currently-selected font name.

getFontChooserStruct
GtkFontChooser* getFontChooserStruct(bool transferOwnership)

Get the main Gtk struct

getFontDesc
PgFontDescription getFontDesc()

Gets the currently-selected font.

getFontFace
PgFontFace getFontFace()

Gets the PangoFontFace representing the selected font group details (i.e. family, slant, weight, width, etc).

getFontFamily
PgFontFamily getFontFamily()

Gets the PangoFontFamily representing the selected font family.

getFontFeatures
string getFontFeatures()

Gets the currently-selected font features.

getFontMap
PgFontMap getFontMap()

Gets the custom font map of this font chooser widget, or %NULL if it does not have one.

getFontSize
int getFontSize()

The selected font size.

getLanguage
string getLanguage()

Gets the language that is used for font features.

getLevel
GtkFontChooserLevel getLevel()

Returns the current level of granularity for selecting fonts.

getPreviewText
string getPreviewText()

Gets the text displayed in the preview area.

getShowPreviewEntry
bool getShowPreviewEntry()

Returns whether the preview entry is shown or not.

setFilterFunc
void setFilterFunc(GtkFontFilterFunc filter, void* userData, GDestroyNotify destroy)

Adds a filter function that decides which fonts to display in the font chooser.

setFont
void setFont(string fontname)

Sets the currently-selected font.

setFontDesc
void setFontDesc(PgFontDescription fontDesc)

Sets the currently-selected font from @font_desc.

setFontMap
void setFontMap(PgFontMap fontmap)

Sets a custom font map to use for this font chooser widget.

setLanguage
void setLanguage(string language)

Sets the language to use for font features.

setLevel
void setLevel(GtkFontChooserLevel level)

Sets the desired level of granularity for selecting fonts.

setPreviewText
void setPreviewText(string text)

Sets the text displayed in the preview area.

setShowPreviewEntry
void setShowPreviewEntry(bool showPreviewEntry)

Shows or hides the editable preview entry.

Meta