I am currently using doom-emacs and I have the problem that I set my font sizes up using my 4K (28") monitor but I also need emacs on my Laptop 1920x1080 (15.6") for school and I would like to change the font size according to either the emacs window size or the current monitor size. My font configuration looks like this. I am using (K)Ubuntu with dwm if it matters.
(setq doom-font (font-spec :family "SauceCodePro Nerd Font Mono" :size 26 :weight 'semi-light)
doom-variable-pitch-font (font-spec :family "Merriweather" :size 28)
doom-big-font (font-spec :family "SauceCodePro Nerd Font Mono" :size 36))
(after! doom-themes
(setq doom-themes-enable-bold t)
(setq doom-themes-enable-italic t))
(custom-set-faces!
'(font-lock-comment-face :slant italic)
'(font-lock-keyword-face :slant italic))