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)

mainlog.html (47.8 KB ) - added by kaputt 5 years ago.
system_info.txt (6.8 KB ) - added by kaputt 5 years ago.
interestinglog.html (417 bytes ) - added by kaputt 5 years ago.

Download all attachments as: .zip

Change History (9)

by kaputt, 5 years ago

Attachment: mainlog.html added

by kaputt, 5 years ago

Attachment: system_info.txt added

by kaputt, 5 years ago

Attachment: interestinglog.html added

comment:1 by elexis, 5 years ago

Patch: Phab:D332
Summary: Change the font size?UI scale option

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 your local.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.

comment:2 by Imarok, 5 years ago

Component: UI & SimulationMisc. UI

Move tickets to their correct component as "UI & Simulation" got some sub components.

comment:3 by ffm2, 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:

  1. scale = 1.3; font size 14 (looks bad)
  2. 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:

  1. Use a vector graphic for fonts
  2. 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

Last edited 5 years ago by ffm2 (previous) (diff)

comment:4 by Langbart, 3 years ago

A 0AD player has described the same problem in #6313, the duplicate has been closed.

comment:5 by Stan, 18 months ago

Milestone: BacklogAlpha 26
Owner: set to Silier

comment:6 by Stan, 18 months ago

Resolution: fixed
Status: newclosed

fixed in r25966

Note: See TracTickets for help on using tickets.