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. Examples;; 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) Warning | See also |
#2024-5-22