Package: gtk

Function gtk:font-chooser-font-map

Lambda List

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

Syntax

(gtk:font-chooser-font-map fontchooser) => fontmap
(setf (gtk:font-chooser-font-map fontchooser) fontmap)

Arguments

fontchooser -- a gtk:font-chooser widget
fontmap -- a pango:font-map object, or nil

Details

Accessor of the Pango font map of the font chooser widget. The gtk:font-chooser-font-map function gets the custom font map of the font chooser widget, or nil if it does not have one. The (setf gtk:font-chooser-font-map) function sets a custom font map to use for the font chooser widget. A custom font map can be used to present application specific fonts instead of or in addition to the normal system fonts.

Examples

Note that other GTK widgets will only be able to use the application specific font if it is present in the font map they use. The following code updates the font map for a gtk:label widget with fontmap.
(setf (pango:context-font-map (gtk:widget-pango-context label)) fontmap)    

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