font misplaced on title screen #651
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Just tried latest master and text seems to be misplaced on the main screen. tested on Arch Linux with wayland. See attached screenshot for reference. In-game stuff seems to be fine, but barely tested.
Furthermore, the menu stuff at the top is tiny, would be nice to have it scale too, but probably worth another issue.
Thanks for reporting this! I must have not made the unblurred text offset properly in fullscreen window modes.
I found the fix and made a pull request. :)
This is drawn by the operating system, so I don't think we can do much about it. Maybe you can do something in System Preferences? I'm not really sure.
EDIT: Oh, I missed that you're on Linux, not Mac. I couldn't tell the difference from the scaled-down screenshot. In that case, sure, we could probably make the menubar scale on Linux. This makes me wonder what it's like on Windows, too…
it's a bit of a mess with wayland now... kde/gtk tend to scale well, other libraries, not so well. Not sure what CBOE is using, but probably have to tell it to scale (or file a bug upstream if necessary).
I think that's possibly irrelevant? Since the menus on Linux are being drawn with SFML.
So they are fully implemented in SFML? Then support for high DPI would probably have to be added manually.
To be specific, they're drawn using TGUI, which is an SFML library that provides graphical widgets.
What I found about TGUI: https://tgui.eu/tutorials/latest-stable/dpi-scaling/
TLDR: You'll have to add something like:
One issue is that SFML 2 does not seem to have any way to actually know the correct scaling factor though...
That doesn't seem to be an issue – since we're allowing the user to choose the scaling factor in preferences, it makes sense to just use the same factor for TGUI.