wez / wezterm

A GPU-accelerated cross-platform terminal emulator and multiplexer written by @wez and implemented in Rust
https://wezfurlong.org/wezterm/
Other
18.05k stars 807 forks source link

New event on font size change #6402

Open dannydulai opened 1 week ago

dannydulai commented 1 week ago

As per my post here, https://github.com/wez/wezterm/issues/1124#issuecomment-2478876706, I use some logic to change the padding on my window object on the "window-resize" event.

Unfortunately, when changing the font size using hotkeys with config.adjust_window_size_when_changing_font_size = false or in fullscreen, this event does not fire because the window size is not changed, so my padding adjustment calculation never is triggered.

I could not find a way to detect when the font changes, so I'm asking for this event as a feature request.