-
-
Notifications
You must be signed in to change notification settings - Fork 843
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]: Interface including fonts and viewports doesn’t scale properly on Mac OS with retina display #10660
Comments
Sprite font is not resizable, but you can set a TrueType font with the |
This happens if you've changed the max sprite zoom setting to be 1x instead of 4x |
Related issue of that setting changing things it probably shouldn't: #8873 |
Hmm, that one is even worse as those gui sprites are handled in the same way as viewport sprites, and some sprites are drawn in both viewport and gui. At least fonts is an easier case to deal with :) |
Ah, not that one, "Maximum zoom in level". |
I have that set to ‘Normal’ (and the corresponding zoom out to 8x). As far as I know, I’ve never touched these settings. |
Change it to 4x. 4x is the default value, normal means 1x. The context is a bit wrong for how it ends up being used here... You'll also need to tweak the interface scale again to make it reload after this change (or just restart the game.) |
Aha, that did indeed fix it! So I think there are two usability issues here:
|
You are right, this setting didn't previously affect font sprites before 13.0. |
…limits. Add separate _font_zoom which is only used to scale the sprite font. This is not clamped to the viewport zoom level limits, so always follows interface scale.
Version of OpenTTD
OpenTTD 13.1, also current nightly (20230415-master), Mac OS 13.3 (ARM)
Expected result
Opening OpenTTD on a Mac with a retina display and setting interface scaling to 2x should cause everything, including fonts, to scale. Only the margins around the fonts changes. The scale of the actual game is also too small, including in the startup screen.
Actual result
1x scaling, everything ‘correct’ in terms of proportions but too small to be seen on a high-resolution screen:
2x scaling, margins around interface elements increased but nothing else, and everything still too small to comfortably read:
If I enable ‘Auto-detect size’, it just changes to 2x scaling and looks exactly the same as when I select that manually.
Steps to reproduce
Open OpenTTD 13.1 on Mac OS. Fiddle with the Interface scale option in Game Options.
I’m using the original_windows graphics set, if that might make a difference. @LordAro suggested this might also be helpful info:
The text was updated successfully, but these errors were encountered: