diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2021-11-16 11:09:38 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2021-11-16 11:09:38 -0700 |
commit | 98bf51457d3745ce0a637521ffb41bbf4ee5ede9 (patch) | |
tree | 9e635439f278c94e8003b0f59e68006ee21460a9 /.emacs.d/init-spw.el | |
parent | 440826f477a3dff24863bbe6bc162b0915f0979c (diff) | |
download | dotfiles-98bf51457d3745ce0a637521ffb41bbf4ee5ede9.tar.gz |
set Inconsolata weight to medium
Diffstat (limited to '.emacs.d/init-spw.el')
-rw-r--r-- | .emacs.d/init-spw.el | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/.emacs.d/init-spw.el b/.emacs.d/init-spw.el index 5d5b2aaf..5d883ad0 100644 --- a/.emacs.d/init-spw.el +++ b/.emacs.d/init-spw.el @@ -284,7 +284,7 @@ I use by default)." (set-fontset-font t 'hangul hangul-font)) (when (and (not (spw/use-tabs-not-frames)) (find-font (font-spec :name "Cousine-10")) - (find-font (font-spec :name "Inconsolata-13"))) + (find-font (font-spec :name "Inconsolata-13" :weight 'medium))) (add-to-list 'window-size-change-functions #'spw/maybe-change-frame-font)) @@ -313,10 +313,11 @@ I use by default)." ;; will not help. Mainly used with my C-i - i3 binding (if (and (> (frame-pixel-width frame) 1300) (< (frame-pixel-width frame) 1485)) - "Cousine-10" - "Inconsolata-13"))) - (unless (string= (frame-parameter frame 'font-parameter) wanted-font) - (set-frame-font (font-spec :name wanted-font)))))) + '("Cousine-10") + '("Inconsolata-13" :weight medium)))) + (unless + (string= (frame-parameter frame 'font-parameter) (car wanted-font)) + (set-frame-font (apply #'font-spec :name wanted-font)))))) (when (fboundp 'set-scroll-bar-mode) (set-scroll-bar-mode nil)) (when (fboundp 'tool-bar-mode) (tool-bar-mode 0)) |