Project

Profile

Help

HostedRedmine.com has moved to the Planio platform. All logins and passwords remained the same. All users will be able to login and use Redmine just as before. Read more...

Bug #766497

Default font size is huge in the new Qt client

Added by Yuri Tretyakov about 3 years ago. Updated almost 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
gui-qt
Sprint/Milestone:
Start date:
Due date:
% Done:

0%

Estimated time:

Description

I have compiled Freeciv 2.6.0 myself (downloaded from http://files.freeciv.org/stable/freeciv-2.6.0.tar.bz2) and saw that the new Qt client looks huge on my laptop. Check the first 8 attached screenshots.

After some research, I have changed the font size to 12 from 17 in the client's options and the game looks just fine (check the 8th and 9th screenshots). Note that I had deleted ~/.config/freeciv-qt-client.ini before that, so I suspect these fonts are set by default.

There was no such problem with the previous versions of the Qt client I've used.

qt_2.png (919 KB) qt_2.png Yuri Tretyakov, 2018-07-24 02:09 PM
qt_1.png (1.09 MB) qt_1.png Yuri Tretyakov, 2018-07-24 02:09 PM
qt_4.png (237 KB) qt_4.png Yuri Tretyakov, 2018-07-24 02:09 PM
qt_3.png (251 KB) qt_3.png Yuri Tretyakov, 2018-07-24 02:09 PM
qt_5.png (210 KB) qt_5.png Yuri Tretyakov, 2018-07-24 02:09 PM
qt_6.png (321 KB) qt_6.png Yuri Tretyakov, 2018-07-24 02:09 PM
qt_7.png (260 KB) qt_7.png Yuri Tretyakov, 2018-07-24 02:09 PM
qt_8.png (959 KB) qt_8.png Yuri Tretyakov, 2018-07-24 02:09 PM
qt_ok_1.png (227 KB) qt_ok_1.png Yuri Tretyakov, 2018-07-24 02:22 PM
qt_ok_2.png (317 KB) qt_ok_2.png Yuri Tretyakov, 2018-07-24 02:22 PM
qt_2_5_11.png (286 KB) qt_2_5_11.png Yuri Tretyakov, 2018-07-24 02:41 PM
qt_fonts_tune.patch (615 Bytes) qt_fonts_tune.patch Anonymous, 2018-07-26 11:25 PM
250
250
250
250
250
250
250
250
250
250
250

History

#1 Updated by Jacob Nevins about 3 years ago

There was no such problem with the previous versions of the Qt client I've used.

What versions were those, do you remember?

(From screenshots, this is many client fonts, not just city font on the map. So it's not a consequence of bug #760420.)

#2 Updated by Yuri Tretyakov about 3 years ago

Forgot to add. My screen resolution is 1366x768 and the version of Qt libraries is 5.11.1.

#3 Updated by Jacob Nevins about 3 years ago

  • Category set to gui-qt

#4 Updated by Yuri Tretyakov about 3 years ago

250

Jacob Nevins wrote:

What versions were those, do you remember?

(From screenshots, this is many client fonts, not just city font on the map. So it's not a consequence of bug #760420.)

I don't remember which version I played in the previous year, but the Qt client for Freeciv 2.5.11 looks fine.

#5 Updated by Yuri Tretyakov about 3 years ago

If I understand correctly, the font sizes are calculated at configure_fonts() in client/gui-qt/fonts.cpp using the Qt physical and logical DPI values. I don't know if this helps, but here are the variable values:

logical_dpi: 96
physical_dpi: 102.048
scale: 1.063
max: 17
smaller: 13
default_size: 15

logicalDotsPerInchX(): 96
physicalDotsPerInchX(): 102.048
logicalDotsPerInchY(): 96
physicalDotsPerInchY(): 102.669
logicalDotsPerInch(): 96
physicalDotsPerInch(): 102.359
devicePixelRatio(): 1

#6 Updated by Anonymous about 3 years ago

Thansk for report and DPI settings. I tuned settings much better now.

Off topic: That titlebar looks useless in your case -> u can disable it in local options ->interface -> show titlebar (unmark), close/min/max buttons will appear on right side of menus.
U can save 20 pixels that way

I checked also on 43 tv and it looks ok ( earlier fonts were at least 2x too small)
all 22-25 monitors should have the same sizes, bigger monitors -> bigger sizes, lower -> lower sizes.

New formula for standard menu font is:

screen_width             ppi * 16
(------------ + 5 ) * -------------
ppi lpi * 27

ppi = physical dpi, lpi = logical_dpi
screen_width/ppi ~ screen size in inches

( In your case its 11.6 - it will be rounded to 12)

I'll check in Windows on Lifebook A512 (15.6" screen, 1366x768 screen) next week before commiting.

#7 Updated by Yuri Tretyakov about 3 years ago

Thanks, the fonts now have appropriate sizes.

#8 Updated by Anonymous almost 3 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF