all repos — archive/dotfiles @ ff17a94532bbd44709db6b71d6d9f67de39e8a89

Superseded by nixfiles

Emacs: workaround issue setting variable-pitch fonts on OSX
Alan Pearce alan@alanpearce.co.uk
Sat, 12 Oct 2013 15:12:17 +0100
commit

ff17a94532bbd44709db6b71d6d9f67de39e8a89

parent

bed8fd45eda6788e315b5ee47e09fa9e7291b63c

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M emacs/init.elemacs/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)))))))))