Author: mir3x
Date: Sat Jan 21 12:37:46 2017
New Revision: 34877

URL: http://svn.gna.org/viewcvs/freeciv?rev=34877&view=rev
Log:
Qt client - Changed default font size to 14*(PPI/DPI)

See bug #25454


Modified:
    trunk/client/gui-qt/fonts.cpp

Modified: trunk/client/gui-qt/fonts.cpp
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/client/gui-qt/fonts.cpp?rev=34877&r1=34876&r2=34877&view=diff
==============================================================================
--- trunk/client/gui-qt/fonts.cpp       (original)
+++ trunk/client/gui-qt/fonts.cpp       Sat Jan 21 12:37:46 2017
@@ -134,9 +134,9 @@
   qreal scale = (physical_dpi / logical_dpi)
                 / screen->devicePixelRatio();
 
-  max = qRound(physical_dpi * scale / 6);
-  smaller = qRound(physical_dpi * scale / 8);
-  default_size = qRound(physical_dpi * scale / 7);
+  max = qRound(scale * 16);
+  smaller = qRound(scale * 12);
+  default_size = qRound(scale *14);
 
   /* default and help label*/
   sl << "Segoe UI" << "Cousine" << "Liberation Sans" << "Droid Sans" 


_______________________________________________
Freeciv-commits mailing list
Freeciv-commits@gna.org
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to