Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Save Game" text input can visibly appear truncated when font size increases #8971

Closed
James103 opened this issue Apr 8, 2021 · 0 comments · Fixed by #10281
Closed

"Save Game" text input can visibly appear truncated when font size increases #8971

James103 opened this issue Apr 8, 2021 · 0 comments · Fixed by #10281
Labels
needs triage This issue needs further investigation before it becomes actionable priority: low This issue should be fixed but has either a low impact or is en edge-case

Comments

@James103
Copy link
Contributor

James103 commented Apr 8, 2021

Version of OpenTTD

1.11.0

Expected result

Changing the font size should visually preserve what is entered as the file name in the "Save Game" window.
image

Actual result

Increasing the font size can result in the file name input being visually cut off in the "Save Game" window.
For example: Start with "Unnamed, 1970-01-01", then double the font size. You will visually see "Unnamed,...", at least until you edit the text.
image

Steps to reproduce

  1. Start a new game.
  2. Open the "Save Game" window.
  3. Open the "Game Options" window and move it to the side.
  4. In "Game Options" window, change "Language" from English to Japanese or change "Font size" from Normal to Double size or Double size to Quad size.
@TrueBrain TrueBrain added needs triage This issue needs further investigation before it becomes actionable priority: low This issue should be fixed but has either a low impact or is en edge-case labels Apr 10, 2021
PeterN added a commit that referenced this issue Dec 25, 2022
* Fix: Use width of caret symbol '_' for text entry.

This replaces an arbitrary pixel width with the space actually required.

* Fix #8971: Update QueryString sizes with interface scale change.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs triage This issue needs further investigation before it becomes actionable priority: low This issue should be fixed but has either a low impact or is en edge-case
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants