Package: gtk

Function gtk:font-chooser-font-family

Lambda List

gtk:font-chooser-font-family (fontchooser)

Arguments

fontchooser -- a gtk:font-chooser widget

Return Value

A pango:font-family object representing the selected font family, or nil.

Details

Gets the Pango font family representing the selected font family. Font families are a collection of font faces. If the selected font is not installed, returns nil.

Examples

(defvar fontbutton (make-instance 'gtk:font-button :font "Serif Bold 10"))
=> FONTBUTTON
(gtk:font-chooser-font-family fontbutton)
=> #<PANGO:FONT-FAMILY {1002728D63}>
(pango:font-family-name *)
=> "Sans"    
 

See also

2023-6-16