Package: kde-guidance Version: 0.7.0-1 Severity: normal Tags: patch
After installation of kde-guidance, and restart of X, all fonts were displayed *much* larger than before. Changing the X-server resolution did not have any effect. It appeared that using the default installation settings, guidance insists on rounding the resolution to 96 or 120 dpi. In my case this means a 28% (!) increase in font size (from 75dpi to 96dpi). I have tried finding a way to change this behavior, but displayconfig does not have an option to configure this. After reading the source, I manually created a file /etc/kde3/displayconfigrc containing the text 'dpi=xserver'. (For the benefit of other people reading this report: this file can be created in any of the paths returned by 'kde-config --path config') IMHO, kde-guidance's default policy should be to modify nothing, and use the X server's setting. This also gives best results if the user may start X sessions on different X servers (with different resolutions...). Consistency is also improved across applications when some do, and others don't use xrdb's value. Another reason is that users may install kde-guidance along with a large batch of other software, or upgrades, and be puzzled as to why their fonts seem to have changed. Few may discover kde-guidance causes this, and even less will discover how to change this, except by removing kde-guidance again... I propose to change FixXorgDPI in /usr/share/python-support/kde-guidance/displayconfig-restore.py as follows: ---------------------------------------------------------------- --- displayconfig-restore.orig 2006-12-31 16:35:55.000000000 +0100 +++ displayconfig-restore.py 2006-12-31 16:47:23.000000000 +0100 @@ -62,24 +62,25 @@ # resource database. Most X applications (Qt and GTK apps at least) will then # use this DPI for font rendering. # def FixXorgDPI(desiredDPI): # dpi is: - # None - round the DPI. + # None - Use the X server's DPI. # xserver - Use the X server's DPI. + # round - Round the X server's DPI. # <number> - DPI to use. - if desiredDPI=="xserver": + if desiredDPI=="xserver" or desiredDPI is None: return dpi = 96 try: - if desiredDPI is not None: + if desiredDPI != "round": dpi = int(desiredDPI) except ValueError: - desiredDPI = None + desiredDPI = "round" - if desiredDPI is None: + if desiredDPI == "round": xserver = xf86misc.XF86Server() if len(xserver.getScreens())!=0: (width,height,width_mm,height_mm) = xserver.getScreens()[0].getDimensions() w_dpi = float(width)/(float(width_mm)/25.4) h_dpi = float(height)/(float(height_mm)/25.4) ---------------------------------------------------------------- Regards, Rogier. -- System Information: Debian Release: 4.0 APT prefers testing APT policy: (500, 'testing') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.15-1-686 Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) Versions of packages kde-guidance depends on: ii kdelibs4c2a 4:3.5.5a.dfsg.1-5 core libraries and binaries for al ii libc6 2.3.6.ds1-8 GNU C Library: Shared libraries ii libgcc1 1:4.1.1-19 GCC support library ii libpythonize0 0.4.0-3 Python packages to support KDE app ii libqt3-mt 3:3.3.7-1 Qt GUI Library (Threaded runtime v ii libstdc++6 4.1.1-19 The GNU Standard C++ Library v3 ii libx11-6 2:1.0.3-4 X11 client-side library ii libxext6 1:1.0.1-2 X11 miscellaneous extension librar ii libxrandr2 2:1.1.0.2-5 X11 RandR extension library ii libxrender1 1:0.9.1-3 X Rendering Extension client libra ii libxxf86vm1 1:1.0.1-2 X11 XFree86 video mode extension l ii pykdeextensions 0.4.0-3 Python packages to support KDE app ii python 2.4.4-2 An interactive high-level object-o ii python-dbus 0.71-3 simple interprocess messaging syst ii python-kde3 3.15.2+20060422-3 KDE3 bindings for Python ii python-support 0.5.6 automated rebuilding support for p ii python2.4 2.4.4-1 An interactive high-level object-o ii sysv-rc 2.86.ds1-36 System-V-like runlevel change mech kde-guidance recommends no packages. -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]