Package: gtk

Accessor gtk-font-chooser-font

Lambda List

gtk-font-chooser-font (object)

Syntax

(gtk-font-chooser-font object) => fontname
(setf (gtk-font-chooser-font object) fontname)

Arguments

object -- a gtk-font-chooser object
fontname -- a string with the font name like "Helvetica 12" or "Times Bold 18"

Details

Accessor of the font slot of the gtk-font-chooser class.

The slot access function gtk-font-chooser-font gets the currently selected font name. The slot access function (setf gtk-font-chooser-font) sets the font name.

Note that this can be a different string than what you set with the function (setf gtk-font-chooser-font), as the font chooser widget may normalize the 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.
 

See also

*2021-2-11