Package: gtk
Function gtk-font-chooser-set-filter-func
Lambda Listgtk-font-chooser-set-filter-func (fontchooser func) ArgumentsDetails
Adds a filter function that decides which fonts to display in the font
chooser. Example
;; Define the callback function
(defun font-filter (family face)
(declare (ignore face))
(member (pango-font-family-name family)
'("Sans" "Serif")
:test #'equal))
;; Set the function FONT-FILTER as the callback function
(gtk-font-chooser-set-filter-func button #'font-filter)
;; Remove the filter function from the font button
(gtk-font-chooser-set-filter-func button nil) | See also |
*2021-2-11