Set font more progressively
This commit is contained in:
parent
b0b29418dd
commit
f36b68b043
1 changed files with 4 additions and 4 deletions
|
|
@ -48,10 +48,10 @@
|
||||||
(interactive)
|
(interactive)
|
||||||
;; If display is set to emulate FullHD resultion or less, make the font
|
;; If display is set to emulate FullHD resultion or less, make the font
|
||||||
;; smaller.
|
;; smaller.
|
||||||
(if (>= 1080 (x-display-pixel-height))
|
(cond ((>= 1050 (x-display-pixel-height)) (set-font "Hack" 14))
|
||||||
(set-font "Hack" 13)
|
((>= 1080 (x-display-pixel-height)) (set-font "Hack" 13))
|
||||||
;; Else, set to default size.
|
((>= 1440 (x-display-pixel-height)) (set-font "Hack" 16))
|
||||||
(set-font "Hack" 16)))
|
(t (set-font "Hack" 16))))
|
||||||
|
|
||||||
;; Do it automatically on startup
|
;; Do it automatically on startup
|
||||||
(set-font-to-screen)
|
(set-font-to-screen)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue