hedgewars/uVariables.pas
branchtransitional_engine
changeset 15975 2146cb7be36f
parent 15901 f39f0f614dbf
parent 15974 8bb07b0f50ca
--- a/hedgewars/uVariables.pas	Fri Mar 10 11:42:25 2023 +0100
+++ b/hedgewars/uVariables.pas	Tue Aug 22 08:35:46 2023 +0200
@@ -357,36 +357,36 @@
 const
     FontzInit: array[THWFont] of THHFont = (
             (Handle: nil;
-            Height: 12*HDPIScaleFactor;
+            Height: round(12*HDPIScaleFactor);
             style: TTF_STYLE_NORMAL;
             Name: 'DejaVuSans-Bold.ttf'),
             (Handle: nil;
-            Height: 24*HDPIScaleFactor;
+            Height: round(24*HDPIScaleFactor);
             style: TTF_STYLE_NORMAL;
             Name: 'DejaVuSans-Bold.ttf'),
             (Handle: nil;
-            Height: 10*HDPIScaleFactor;
+            Height: round(10*HDPIScaleFactor);
             style: TTF_STYLE_NORMAL;
             Name: 'DejaVuSans-Bold.ttf'),
             (Handle: nil; // fntChat
-            Height: 12*HDPIScaleFactor;
+            Height: round(12*HDPIScaleFactor);
             style: TTF_STYLE_NORMAL;
             Name: 'DejaVuSans-Bold.ttf')
             {$IFNDEF MOBILE}, // remove chinese fonts for now
             (Handle: nil;
-            Height: 12*HDPIScaleFactor;
+            Height: round(12*HDPIScaleFactor);
             style: TTF_STYLE_NORMAL;
             Name: 'wqy-zenhei.ttc'),
             (Handle: nil;
-            Height: 24*HDPIScaleFactor;
+            Height: round(24*HDPIScaleFactor);
             style: TTF_STYLE_NORMAL;
             Name: 'wqy-zenhei.ttc'),
             (Handle: nil;
-            Height: 10*HDPIScaleFactor;
+            Height: round(10*HDPIScaleFactor);
             style: TTF_STYLE_NORMAL;
             Name: 'wqy-zenhei.ttc'),
             (Handle: nil; // CJKfntChat
-            Height: 12*HDPIScaleFactor;
+            Height: round(12*HDPIScaleFactor);
             style: TTF_STYLE_NORMAL;
             Name: 'wqy-zenhei.ttc')
             {$ENDIF}