1
0
Fork 0

fix(emacs): change font from Libertine to Newsreader for variable fonts

Signed-off-by: Lucas Sta Maria <lucas@priime.dev>
This commit is contained in:
Lucas Sta Maria 2024-03-17 22:03:03 -04:00
parent 7957924ede
commit 6b8313b007
No known key found for this signature in database
GPG key ID: F07FB16A826E3B47
2 changed files with 7 additions and 4 deletions

View file

@ -49,6 +49,9 @@
(load-theme 'nano t)
(nano-light)
(defvar priime-fixed-font "Jetbrains Mono Semibold")
(defvar priime-variable-font "Newsreader")
(add-to-list 'default-frame-alist '(font . "JetBrains Mono SemiBold-10"))
(defvar font-size 10)
(defvar font-family "JetBrains Mono SemiBold")
@ -56,9 +59,9 @@
(custom-set-faces
'(region ((t (:inherit nano-subtle :background "#EBE5F5"))))
'(variable-pitch ((t (:family "Linux Libertine" :height 125 :weight medium))))
'(fixed-pitch ((t (:family "JetBrains Mono SemiBold" :height 100))))
'(shr-text ((t (:inherit variable-pitch-text :family "Linux Libertine")))))
`(variable-pitch ((t (:family ,priime-variable-font :height 125 :weight medium))))
`(fixed-pitch ((t (:family ,priime-fixed-font :height 100))))
`(shr-text ((t (:inherit variable-pitch-text :family ,priime-variable-font)))))
(set-face-attribute 'italic nil
:family 'inherit
:slant 'italic

View file

@ -176,7 +176,7 @@
;; Theme
(custom-set-faces
'(org-document-info ((t (:inherit nano-strong :height 1.0))))
'(org-document-title ((t (:inherit nano-strong :height 1.5 :family "Linux Libertine"))))
'(org-document-title ((t (:inherit nano-strong :height 1.5 :family "Newsreader"))))
'(org-document-info-keyword ((t :inherit (nano-faded fixed-pitch))))
'(org-level-1 ((t (:inherit nano-strong :extend nil :height 1.4))))
'(org-level-2 ((t (:inherit nano-strong :extend nil :height 1.3))))