wezterm icon indicating copy to clipboard operation
wezterm copied to clipboard

font size affects window size

Open nb5p opened this issue 1 year ago • 8 comments

What Operating System(s) are you seeing this problem on?

macOS

Which Wayland compositor or X11 Window manager(s) are you using?

No response

WezTerm version

wezterm 20230904-133103-914f18b1

Did you try the latest nightly build to see if the issue is better (or worse!) than your current version?

Yes, and I updated the version box above to show the version of the nightly that I tried

Describe the bug

When the font size is less than 13.7, the window size is standard at 80*24. However, when the font size is greater than or equal to 13.8, the window size changes to 172*49 after restarting wezterm.

font-size-13.7

font-size-13.8

To Reproduce

No response

Configuration

return {
    font_size = 13.8,
}

Expected Behavior

No response

Logs

No response

Anything else?

No response

nb5p avatar Sep 05 '23 12:09 nb5p

is this on an external monitor?

wez avatar Feb 04 '24 00:02 wez

is this on an external monitor?

Yes, I'm using a Mac Mini.

nb5p avatar Feb 06 '24 13:02 nb5p

Later, I discovered that using different fonts would result in different threshold values.

nb5p avatar Feb 06 '24 14:02 nb5p

Please try the latest nightly build and let me know if this is still an issue!

wez avatar Feb 08 '24 12:02 wez

Thank you, the fix works for me.

nb5p avatar Feb 08 '24 13:02 nb5p

The problem has reoccurred, possibly because I didn't connect my second external monitor on the day of testing, so I thought it was fixed. Just now, I disconnected the monitor that hasn't been used for the past few days and restarted my Mac mini, and indeed the issue doesn't exist anymore. The issue was resolved when connecting an external monitor, so I reopened this issue.

nb5p avatar Feb 14 '24 06:02 nb5p

I'm not clear on when the issue triggers now; could you clarify what is needed for it to occur now?

wez avatar Feb 14 '24 14:02 wez

When my Mac Mini is connected to two external monitors, the same problem occurs as before.

nb5p avatar Feb 14 '24 15:02 nb5p