From 14604dfe72b299c3b37964eac08ce625d5c3d1be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaakko=20Ker=C3=A4nen?= Date: Wed, 26 Aug 2015 19:35:10 +0300 Subject: [PATCH] Linux|Default Style: Scale font sizes by the display DPI factor On Windows and OS X, the operating system and/or Qt scale the fonts automatically, however on Linux it is currently necessary to scale the sizes manually. --- .../net.dengine.client.pack/defaultstyle.pack/fonts.dei | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/doomsday/apps/client/net.dengine.client.pack/defaultstyle.pack/fonts.dei b/doomsday/apps/client/net.dengine.client.pack/defaultstyle.pack/fonts.dei index d845098076..50eae5d1ec 100644 --- a/doomsday/apps/client/net.dengine.client.pack/defaultstyle.pack/fonts.dei +++ b/doomsday/apps/client/net.dengine.client.pack/defaultstyle.pack/fonts.dei @@ -7,7 +7,8 @@ # - transform: normal, uppercase, lowercase script { - import Version, gui + import Version, gui, DisplayMode + # Load the Open Sans font contained in this pack. def loadOpenSans() import App @@ -79,14 +80,14 @@ group { font default { family: Liberation Sans - size: 13pt + size $: gui.scale("13pt", DisplayMode.DPI_FACTOR) weight: normal style: normal } font monospace inherits default { family: FreeMono - size: 12pt + size $: gui.scale("12pt", DisplayMode.DPI_FACTOR) } }