]> git.eshelyaron.com Git - emacs.git/commitdiff
(artist-mode): Warn about proportional fonts
authorLars Ingebrigtsen <larsi@gnus.org>
Mon, 16 Apr 2018 19:20:08 +0000 (21:20 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Mon, 16 Apr 2018 19:20:08 +0000 (21:20 +0200)
* lisp/textmodes/artist.el (artist-mode): Warn about proportional
fonts (bug#24175).

lisp/textmodes/artist.el

index af7bcc77cdf56b37349216183dd14ca425440d51..7c261f8d2d16d40a59c1667a4765f8dfedb5e8d5 100644 (file)
@@ -1401,7 +1401,9 @@ Keymap summary
         (artist-mode-exit))
        (t
         ;; Turn mode on
-        (artist-mode-init))))
+        (artist-mode-init)
+         (unless (font-get (face-attribute 'default :font) :spacing)
+           (message "The default font isn't monospaced, so the drawings in this buffer may look odd")))))
 
 ;; Init and exit
 (defun artist-mode-init ()