-
Notifications
You must be signed in to change notification settings - Fork 354
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
[Bug] Unicode language text is drawn a few pixels off target #2459
Comments
This is because the font is taller isn't it? |
I'm guessing we draw font specifying the top left pixel position. Not very wise it seems for anything but built-in |
Fonts are designed to look good when you fill a page / screen with text. Different fonts have different amounts of space around the letters. Some of that space is used for getting the good distance between 2 consecutive lines of text (which we don't need here). Other space is used by just a few "high" or "low" letters. If you happen not to use those, the empty space looks like a needless huge gap. |
Lewri is right here. Also not all fonts are the same aspect ratio. Sounds like this bug might be about choosing size better |
Describe the issue
The text from the Unicode languages (eg Korean) are 2 pixels off where they should be. In the first screenshot of the Build Room dialog they are down and right of the English screenshot, but in the Graphs dialog and bottom panel, they are up and left.
Steps to Reproduce
Switch to a unicode font and load/start a game
Open the dialogs Build Room, Hire Staff, Progress Report, Graphs
Expected Behaviour
Consistent placement
Save Game
Save game attached to report: Yes/No
CorsixTH Version
15368f1 (recent master)
Operating System
macOS 10.15
Theme Hospital Version
CD
Gamelog.txt
No response
Additional Information
The text was updated successfully, but these errors were encountered: