Package: gtk

Function gtk-font-chooser-get-font

Lambda List

gtk-font-chooser-get-font (fontchooser)

Arguments

fontchooser -- a gtk-font-chooser object

Return Value

A string with the name of the current font, or nil if no font is selected.

Details

Gets the currently-selected font name.

Note that this can be a different string than what you set with the function gtk-font-chooser-set-font, as the font chooser widget may normalize font names and thus return a string with a different structure. For example, "Helvetica Italic Bold 12" could be normalized to "Helvetica Bold Italic 12".

Use the function pango-font-description-equal if you want to compare two font descriptions.

Since 3.2 pango-font-description-equal
2013-6-18