Font rendering oddities on external display, custom dpi
setting, etc.?
#4091
Unanswered
jesseleite
asked this question in
Q&A
Replies: 3 comments 7 replies
-
Regarding 1), you'd have to use events & callbacks to do this during runtime, not when loading the config, e.g. local wezterm = require("wezterm")
wezterm.on("update-status", function(window, pane)
if wezterm.gui.screens().active.name == "LG HDR WQHD" then
window:set_config_overrides({ dpi = 109 })
else
-- reset
window:set_config_overrides({ dpi = 144 })
end
end) I've tested this on macOS, and I don't think you can actually change dpi settings during runtime? Changing |
Beta Was this translation helpful? Give feedback.
3 replies
-
Beta Was this translation helpful? Give feedback.
3 replies
-
I'd suggest disabling hinting to see if that looks better: config.freetype_load_flags = 'NO_HINTING' |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Firstly, thank you so much @wez for all you do on WezTerm! I've been absolutely loving it! 🔥
Anyway, I'm noticing some weird font rendering oddities on my external LG display. For example...
These kinds of rendering oddities seem totally random, and I don't think they happen at all on my Mac's Retina display, but they happen quite often on my external LG display.
Maybe Wezterm's
dpi
setting is wrong for my LG display's physical ppi? The dpi docs page says that on macOS, the display cannot be probed, so WezTerm decides between 72 and 144 dpi based on whether it detects the internal retina display or not. My LG display is a physical 109 ppi, so I thought I'd try setting an explicitdpi = 109
to see if that produces more stable font rendering...I guess I have two questions regarding all of this...
Though I'm not sure yet if this fixes my font issues, the above config seems to work as far as detecting my LG display when starting Wezterm 👍 However, when I manually save my config and the hot reload happens, I get this error...
...Is there a way to suppress this error when hot reloading the config?
Has anyone else seen these kinds of font rendering oddities and/or know what may be causing them?
Beta Was this translation helpful? Give feedback.
All reactions