From 2bf802e7f51665087abc2789c442b978be7b4e1a Mon Sep 17 00:00:00 2001 From: Vincent Zhang Date: Mon, 1 Jul 2019 18:38:12 +0800 Subject: [PATCH] Optimize: calculate font height of mode-line. Use face-attribute instead of frame-char-height. Close #189. --- doom-modeline-core.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doom-modeline-core.el b/doom-modeline-core.el index 4697927..a93d05f 100644 --- a/doom-modeline-core.el +++ b/doom-modeline-core.el @@ -499,7 +499,7 @@ If the actual char height is larger, it respects the actual char height.") (defun doom-modeline--font-height () "Calculate the actual char height of the mode-line." - (round (* 1.68 (frame-char-height)))) + (round (* 0.168 (face-attribute 'mode-line :height)))) (defun doom-modeline-icon-octicon (&rest args) "Display octicon via ARGS."