Package: gtk

Function gtk-font-chooser-get-font-desc

Lambda List

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


fontchooser -- a gtk-font-chooser object

Return Value

A pango-font-description for the current font, or nil if no font is selected.


Gets the currently-selected font.

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

See also