blob: d49160526808baea15c7dd61ba5ba344dfc11470 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
;;; rul-fonts.el --- Fonts configuration
(defun rul-wayland-session-p ()
(string= (getenv "XDG_SESSION_TYPE") "wayland"))
(use-package fontaine
:ensure t
:config
(setq fontaine-presets
'((tiny
:default-height 100)
(small
:default-height 120)
(medium
:default-height 150)
(wayland-medium
:default-height 320)
(large
:default-weight semilight
:default-height 180
:bold-weight extrabold)
(presentation
:default-weight semilight
:default-height 200
:bold-weight extrabold)
(jumbo
:default-weight semilight
:default-height 230
:bold-weight extrabold)
(writing
:default-height 140
:default-family "Lato"
:variable-pitch-family "Regular"
)
(t
:default-family "Iosevka"
:default-weight regular
:default-height 140
:variable-pitch-family "Iosevka Aile")))
;; Set desired style from `fontaine-presets'
(if (rul-wayland-session-p)
(fontaine-set-preset 'wayland-medium)
(fontaine-set-preset 'medium)))
(provide 'rul-fonts)
|