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 gtk:font-chooser-font function gets the currently selected font name. The (setf gtk:font-chooser-font) function sets the font name.

Note that this can be a different string than what you set with the (setf gtk:font-chooser-font) function, 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 pango:font-description-equal function if you want to compare two font descriptions.

Warning

The gtk:font-chooser implementation is deprecated since 4.10. Use the gtk:font-dialog and gtk:font-dialog-button widgets instead.
 

See also

2023-8-28