Package: gtk

Accessor gtk-font-button-font-name

Lambda List

gtk-font-button-font-name (object)

Syntax

(gtk-font-button-font-name object) => fontname
(setf (gtk-font-button-font-name object) fontname)

Arguments

object -- a gtk-font-button widget
fontname -- a string with the name of the font to display in the font chooser dialog

Details

Accessor of the font-name slot of the gtk-font-button class.

The slot access function (setf gtk-font-button-font-name) sets or updates the currently displayed font in the font picker dialog. The slot access function gtk-font-name-button-font-name retrieves the name of the currently selected font.

This name includes style and size information as well. If you want to render something with the font, use this string with the function pango-font-description-from-string. If you are interested in peeking certain values, family name, style, size, weight, just query these properties from the pango-font-description structure.

Warning

The gtk-font-button-font-name function has been deprecated since version 3.22 and should not be used in newly written code. Use the gtk-font-chooser-font function instead.
 

See also

2021-1-7