Opened 5 years ago
Closed 18 months ago
#5336 closed enhancement (fixed)
UI scale option
Reported by: | kaputt | Owned by: | Silier |
---|---|---|---|
Priority: | Should Have | Milestone: | Alpha 26 |
Component: | UI – Miscellaneous | Keywords: | font fontsize |
Cc: | Patch: | Phab:D332 |
Description
When trying to play 0ad on a 12.5" size laptop screen with 1920x1080 resolution, the font is a little too small to be seen comfortably. I am using Gnome 3 with X11 on Arch Linux.
Expected result: Larger fonts.
Possible solutions:
1) If it's already possible, update the documentation!
2) Add an option in "Settings->Options->General" to allow changing the font size. (I couldn't find one.)
3) Add an option in "Settings->Options->Graphics" to allow changing the display resolution, which I presume would result in a larger font as well. I tried changing the display resolution by creating ~/.config/0ad/configs/local.cfg with xres=1280
and yres=720
. However, after restarting 0ad, the resolution is still 1920x1080. The log shows that the local.cfg with the smaller resolution is loaded. (This might be a separate bug?)
Attachments (3)
Change History (9)
by , 5 years ago
Attachment: | mainlog.html added |
---|
by , 5 years ago
Attachment: | system_info.txt added |
---|
by , 5 years ago
Attachment: | interestinglog.html added |
---|
comment:1 by , 5 years ago
Patch: | → Phab:D332 |
---|---|
Summary: | Change the font size? → UI scale option |
comment:2 by , 5 years ago
Component: | UI & Simulation → Misc. UI |
---|
Move tickets to their correct component as "UI & Simulation" got some sub components.
comment:3 by , 5 years ago
Curent gui.scale is not a good solution for a modern video game.
A problem is the font is rendered for gui.scale = 1.0 as a raster graphic. Example:
- scale = 1.3; font size 14 (looks bad)
- scale = 1.0; font size 18 (looks good)
While both fonts have approximately the same size (in cm) on the screen.
I made a mod which increases the font size, but i am not sure this is the right way to go. This mod wouldn't mix well with the gui scaling as it scales the font another time.
I see 2 options 0ad could do better to scale fonts:
- Use a vector graphic for fonts
- Use the nearest raster and use that as font size
https://wildfiregames.com/forum/index.php?/topic/27137-ffm_4k-font-mod/&tab=comments#comment-386594
comment:4 by , 3 years ago
A 0AD player has described the same problem in #6313, the duplicate has been closed.
comment:5 by , 18 months ago
Milestone: | Backlog → Alpha 26 |
---|---|
Owner: | set to |
Those are all settings currently available: https://trac.wildfiregames.com/browser/ps/trunk/binaries/data/config/default.cfg
You can add
gui.scale = 1.5
to yourlocal.cfg
to increase everything by 50%.https://trac.wildfiregames.com/wiki/GameDataPaths https://trac.wildfiregames.com/wiki/Manual_Settings
There is a patch for that in Phab:D332 that allows changing it with a slider in the options. It however was abandoned, because once the zoom is too large, the user could not reset it, because the slider is not on screen anymore. So there will have to be an auto-reset added if not confirmed within 5 seconds by the user or something.