Package: gtk

Function gtk:font-chooser-font-family

Lambda List

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

Arguments

fontchooser -- a gtk:font-chooser object

Return Value

The 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"    

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

#2024-5-22