This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; Display all the monospace fonts available to Emacs in a dedicated buffer | |
(defun font-is-mono-p (font-family) | |
;; with-selected-window | |
(let ((wind (selected-window)) | |
m-width l-width) | |
(with-temp-buffer | |
(set-window-buffer (selected-window) (current-buffer)) | |
(text-scale-set 4) | |
(insert (propertize "l l l l l" 'face `((:family ,font-family)))) |