1
0
Fork 0

[oni-gui] Fix setting fixed-pitch' and variable-pitch' faces

Also change the `variable-pitch' font to Comic Neue[1]

[1]: http://www.comicneue.com/
This commit is contained in:
Tom Willemse 2021-09-11 02:55:05 -07:00
parent cccaac7c32
commit 4fee53aae5

View file

@ -4,7 +4,7 @@
;; Author: Tom Willemse <tom@ryuslash.org> ;; Author: Tom Willemse <tom@ryuslash.org>
;; Keywords: local ;; Keywords: local
;; Version: 2021.0727.144752 ;; Version: 2021.0911.025144
;; Package-Requires: (oni-ui oni-hydra yoshi-theme diminish) ;; Package-Requires: (oni-ui oni-hydra yoshi-theme diminish)
;; This program is free software; you can redistribute it and/or modify ;; This program is free software; you can redistribute it and/or modify
@ -31,12 +31,14 @@
(add-to-list 'default-frame-alist '(font . "Fantasque Sans Mono-15")) (add-to-list 'default-frame-alist '(font . "Fantasque Sans Mono-15"))
(add-to-list 'default-frame-alist '(internal-border-width . 15)) (add-to-list 'default-frame-alist '(internal-border-width . 15))
(set-face-attribute 'fixed-pitch nil :font "Fantasque Sans Mono-15")
(set-face-attribute 'variable-pitch nil :font "Space Grotesk-15:weight=medium")
(defconst oni-gui-isearch-icon ?) (defconst oni-gui-isearch-icon ?)
(defconst oni-gui-arev-icon ?) (defconst oni-gui-arev-icon ?)
(defun oni-gui-setup-faces (frame)
"Setup faces for FRAME."
(set-face-attribute 'fixed-pitch frame :font "Fantasque Sans Mono-15")
(set-face-attribute 'variable-pitch frame :font "Comic Neue-15"))
(defun oni-gui-setup-fontsets (frame) (defun oni-gui-setup-fontsets (frame)
"Setup fontsets for FRAME. "Setup fontsets for FRAME.
If FRAME is nil, theyre set for the current frame." If FRAME is nil, theyre set for the current frame."
@ -113,9 +115,11 @@ _bi_: Auto Insert ^^ ^^
(if (daemonp) (if (daemonp)
(progn (progn
(add-hook 'after-make-frame-functions #'oni-gui-setup-fontsets) (add-hook 'after-make-frame-functions #'oni-gui-setup-fontsets)
(add-hook 'after-make-frame-functions #'oni-gui-setup-ligatures)) (add-hook 'after-make-frame-functions #'oni-gui-setup-ligatures)
(add-hook 'after-make-frame-functions #'oni-gui-setup-faces))
(oni-gui-setup-fontsets nil) (oni-gui-setup-fontsets nil)
(oni-gui-setup-ligatures)) (oni-gui-setup-ligatures)
(oni-gui-setup-faces nil))
(global-unset-key (kbd "C-z")) (global-unset-key (kbd "C-z"))
(global-set-key (kbd "C-c c") 'oni-gui-hydra/body) (global-set-key (kbd "C-c c") 'oni-gui-hydra/body)