Skip to content

Increased/altered font size is lost when moving monitors #6317

Description

@smacdonald-kai

Existing issues matching what you're seeing

  • I was not able to find an open or closed issue matching what I'm seeing

Git for Windows version

$ git --version --build-options
git version 2.54.0.windows.1
cpu: x86_64
built from commit: 2b8a3ab140826ac423c2845ef81d4c6ac4f7bf3c
sizeof-long: 4
sizeof-size_t: 8
shell-path: D:/git-sdk-64-build-installers/usr/bin/sh
rust: disabled
feature: fsmonitor--daemon
gettext: enabled
libcurl: 8.19.0
OpenSSL: OpenSSL 3.5.6 7 Apr 2026
zlib: 1.3.2
SHA-1: SHA1_DC
SHA-256: SHA256_BLK
default-ref-format: files
default-hash: sha1

Windows version

Windows 11

Windows CPU architecture

x86_64 (64-bit)

Additional Windows version information

C:\>cmd.exe /c ver

Microsoft Windows [Version 10.0.26200.8655]

Options set during installation

$ cat /etc/install-options.txt
Editor Option: VIM
Custom Editor Path:
Default Branch Option:
Path Option: Cmd
SSH Option: OpenSSH
Tortoise Option: false
CURL Option: OpenSSL
CRLF Option: CRLFAlways
Bash Terminal Option: MinTTY
Git Pull Behavior Option: Merge
Use Credential Manager: Enabled
Performance Tweaks FSCache: Enabled
Enable Symlinks: Disabled
Enable FSMonitor: Disabled

Other interesting things

No response

Terminal/shell

bash

Commands that trigger the issue

This may be a two-for-one issue. Let me know if I should split into two distinct issues.
This may be an MSYS2 issue, not a git-for-windows issue. Apologies in advance if that's the case.
This may be related to #6085

  1. Font size changes aren't reflected in the options:
  • open a bash window
  • -> Options... -> Text
  • observe the font size (default: Liberation Mono 8pt)
  • without closing the options dialog, change the font size via ctrl-+ or ctrl--
  • observe the font size is unchanged in the options dialog
  • close and reopen the options dialog
  • observe the font size is still unchanged, so it's not a refresh issue
  1. Font size changes are lost when switching to a monitor with a different resolution
  • open a bash window
  • change the font size via ctrl-+ or ctrl--
  • move the bash window to a monitor that has a different resolution; I have 2 external FHD 1920x1080 monitors and a builtin 4K 3840x2160
  • observe that the font size has reverted to default
    This does not occur when moving between the two FHD monitors, only when moving between FHD and 4K monitors.
  1. Bonus: The window seems to shrink some when the font size change is reverted.
    I haven't noticed this before so I'm pretty sure it's related to the font size reversion. I'm not digging into this one though due to time constraints.

Expected behaviour

I expected:

  1. The font size change to be reflected in the options
  2. The font size change to persist

Actual behaviour

See above

Repository

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions