Package: xterm
Version: 222-1etch2
Severity: important


Xterm does not honour the colorBDMode when instructed to render text
using FreeType fonts. This makes bold antialised text (such as directory
names in Midnight Commander) highly illegible and tiresome to the eyes,
especially because xterm combines bolding with highlighting.

The following simple patch is proposed to solve the problem (please adjust
code formatting as you see fit):

diff -u --recursive xterm-222.orig/fontutils.c xterm-222/fontutils.c
--- xterm-222.orig/fontutils.c  2006-09-10 22:55:28.000000000 +0300
+++ xterm-222/fontutils.c       2007-10-05 23:30:43.000000000 +0300
@@ -1540,11 +1540,13 @@
                norm = xtermOpenXft(dpy, pat, "normal");

                if (norm != 0) {
+                   if (screen->colorBDMode) {
                    XftPatternBuild(pat,
                                    XFT_WEIGHT, XftTypeInteger, XFT_WEIGHT_BOLD,
                                    XFT_CHAR_WIDTH, XftTypeInteger, 
norm->max_advance_width,
                                    (void *) 0);
                    bold = xtermOpenXft(dpy, pat, "bold");
+                   }

 #if OPT_ISO_COLORS
                    if (screen->italicULMode) {



-- System Information:
Debian Release: 4.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-5-k7
Locale: LANG=en_DK.UTF-8, LC_CTYPE=en_DK.UTF-8 (charmap=UTF-8)

Versions of packages xterm depends on:
ii  libc6                  2.3.6.ds1-13etch2 GNU C Library: Shared libraries
ii libfontconfig1 2.4.2-1.2 generic font configuration library ii libice6 1:1.0.1-2 X11 Inter-Client Exchange library ii libncurses5 5.5-5 Shared libraries for terminal hand
ii  libsm6                 1:1.0.1-3         X11 Session Management library
ii  libx11-6               2:1.0.3-7         X11 client-side library
ii  libxaw7                1:1.0.2-4         X11 Athena Widget library
ii libxext6 1:1.0.1-2 X11 miscellaneous extension librar ii libxft2 2.1.8.2-8 FreeType-based font drawing librar ii libxmu6 1:1.0.2-2 X11 miscellaneous utility library
ii  libxt6                 1:1.0.2-2         X11 toolkit intrinsics library
ii  xbitmaps               1.0.1-2           Base X bitmaps

Versions of packages xterm recommends:
ii xutils 1:7.1.ds.3-1 X Window System utility programs

-- no debconf information



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to