Emacs: workaround issue setting variable-pitch fonts on OSX
Alan Pearce alan@alanpearce.co.uk
Sat, 12 Oct 2013 15:12:17 +0100
1 files changed, 1 insertions(+), 1 deletions(-)
jump to
M emacs/init.el → emacs/init.el
@@ -148,7 +148,7 @@ (variable-face "Helvetica_Neue") (default-font (concat mono-face "-" (number-to-string font-size)))) (when mono-face (add-to-list 'default-frame-alist `(font . ,default-font))) - (when variable-face + (when (and variable-face (display-graphic-p)) (set-face-font 'variable-pitch (concat variable-face "-" (number-to-string (1+ font-size)))))))))