From 6e69b29084e17afb2c92a321f9f26dc10dd71faf Mon Sep 17 00:00:00 2001 From: woochica Date: Sat, 6 Jul 2024 00:58:18 +0200 Subject: [PATCH] fix(lib): reset font size before setting big font mode Calling (doom-adjust-font-size 1) repeatedly would keep increase the font size because an increment is passed. When loading themes, the doom-big-font-mode minor mode gets loaded again therefore it causes the font to get increased. Fix: #7845 --- lisp/lib/fonts.el | 1 + 1 file changed, 1 insertion(+) diff --git a/lisp/lib/fonts.el b/lisp/lib/fonts.el index 04f289f12..250eb09f9 100644 --- a/lisp/lib/fonts.el +++ b/lisp/lib/fonts.el @@ -177,4 +177,5 @@ Also resizees `doom-variable-pitch-font' and `doom-serif-font'." (font-get (doom-normalize-font doom-big-font) :size)) t `((doom-font . ,doom-big-font))) ;; Resize the current font + (doom-adjust-font-size nil) (doom-adjust-font-size (if doom-big-font-mode doom-big-font-increment))))