Include line height in *fonts
This commit is contained in:
parent
4fbaf7b3dc
commit
cc6c9b33c2
1 changed files with 4 additions and 2 deletions
|
@ -50,11 +50,13 @@
|
||||||
(let* ((font (nth my/cycle-font-i *fonts))
|
(let* ((font (nth my/cycle-font-i *fonts))
|
||||||
(font-name (nth 0 font))
|
(font-name (nth 0 font))
|
||||||
(font-size (nth 1 font))
|
(font-size (nth 1 font))
|
||||||
(font-aa (nth 2 font)))
|
(font-aa (nth 2 font))
|
||||||
|
(font-line (nth 3 font)))
|
||||||
(unless (member font-name (font-family-list))
|
(unless (member font-name (font-family-list))
|
||||||
(error "Font %s isn't installed" font-name))
|
(error "Font %s isn't installed" font-name))
|
||||||
(let ((font-str (concat font-name "-" (number-to-string font-size))))
|
(let ((font-str (concat font-name "-" (number-to-string font-size))))
|
||||||
(add-to-list 'default-frame-alist `(font . ,font-str))
|
(add-to-list 'default-frame-alist `(font . ,font-str))
|
||||||
(add-to-list 'initial-frame-alist `(font . ,font-str)))
|
(add-to-list 'initial-frame-alist `(font . ,font-str)))
|
||||||
(load-font font-name font-size)
|
(load-font font-name font-size)
|
||||||
(setq ns-antialias-text font-aa)))
|
(setq ns-antialias-text font-aa)
|
||||||
|
(setq-default line-spacing font-line)))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue