[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: qt-copy
From: Stephan Kulow <coolo () kde ! org>
Date: 2004-03-25 8:22:50
Message-ID: 20040325082250.EF5DA997E () office ! kde ! org
[Download RAW message or body]
CVS commit by coolo:
patch by TT to fix wrong font sizes
A patches/0039-wrongfontsizes-BR74460.diff 1.1
M +15 -0 src/kernel/qapplication_x11.cpp 1.100
--- qt-copy/src/kernel/qapplication_x11.cpp #1.99:1.100
@@ -1938,4 +1938,19 @@ void qt_init_internal( int *argcptr, cha
extern bool qt_has_xft;
qt_has_xft = XftInit(0) && XftInitFtLibrary();
+
+ if (qt_has_xft) {
+ char *dpi_str = XGetDefault(appDpy, "Xft", "dpi");
+ if (dpi_str) {
+ // use a custom DPI
+ char *end = 0;
+ int dpi = strtol(dpi_str, &end, 0);
+ if (dpi_str != end) {
+ for (int s = 0; s < ScreenCount(appDpy); ++s) {
+ QPaintDevice::x11SetAppDpiX(dpi, s);
+ QPaintDevice::x11SetAppDpiY(dpi, s);
+ }
+ }
+ }
+ }
#endif // QT_NO_XFTFREETYPE
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic