From f97cf8f296e90207db143bc4312a60041726217b Mon Sep 17 00:00:00 2001 From: Mirek Fidler Date: Tue, 5 May 2026 09:06:35 +0200 Subject: [PATCH] CtrlLib: Fractional font height in ChX11 --- uppsrc/CtrlLib/ChX11.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/uppsrc/CtrlLib/ChX11.cpp b/uppsrc/CtrlLib/ChX11.cpp index f34447971..48f52fdc5 100644 --- a/uppsrc/CtrlLib/ChX11.cpp +++ b/uppsrc/CtrlLib/ChX11.cpp @@ -5,6 +5,7 @@ namespace Upp { #define LLOG(x) +#define LDUMP(x) VectorMap GetXSettings() { @@ -96,15 +97,15 @@ void ChHostSkin() String theme = map.Get("Net/ThemeName", ""); //int scaling = map.Get("Gdk/WindowScalingFactor", 1); int xdpi = map.Get("Xft/DPI", 98347); - + int fontface = Font::ARIAL; - int fontheight = 13; + double fontheight = 12; bool bold = false; bool italic = false; const char *q = strrchr(font_name, ' '); if(q) { - int h = atoi(q); + double h = Atof(q); if(h) fontheight = h; String face(font_name, q);