Package: rxvt-unicode Version: 9.06-1 Severity: normal Tags: patch Hi,
urxvt incorrectly renders xft fonts: the horizontal spaces are larger in urxvt than in any other term. A patch has been proposed upstream[1], but was rejected. I've tried it on my PC and it fixes this bug (at least for me). So I think you may consider including it in the Debian package. [1] http://lists.schmorp.de/pipermail/rxvt-unicode/2007q4/000514.html -- System Information: Debian Release: 5.0 APT prefers jaunty-updates APT policy: (500, 'jaunty-updates'), (500, 'jaunty-security'), (500, 'jaunty-proposed'), (500, 'jaunty-backports'), (500, 'jaunty') Architecture: i386 (i686) Kernel: Linux 2.6.28-11-generic (SMP w/2 CPU cores) Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages rxvt-unicode depends on: ii base-passwd 3.5.21 Debian base system master password ii libafterimage0 2.2.8-2 imaging library designed for After ii libc6 2.9-4ubuntu6 GNU C Library: Shared libraries ii libcairo2 1.8.6-1ubuntu2 The Cairo 2D vector graphics libra ii libfontconfig1 2.6.0-1ubuntu12 generic font configuration library ii libfreetype6 2.3.9-4ubuntu0.1 FreeType 2 font engine, shared lib ii libgcc1 1:4.3.3-5ubuntu4 GCC support library ii libglib2.0-0 2.20.1-0ubuntu2 The GLib library of C routines ii libgtk2.0-0 2.16.1-0ubuntu2 The GTK+ graphical user interface ii libice6 2:1.0.4-1 X11 Inter-Client Exchange library ii libjpeg62 6b-14 The Independent JPEG Group's JPEG ii libperl5.10 5.10.0-19ubuntu1 Shared Perl library ii libpng12-0 1.2.27-2ubuntu2 PNG library - runtime ii librsvg2-2 2.26.0-0ubuntu1 SAX-based renderer library for SVG ii libsm6 2:1.1.0-1 X11 Session Management library ii libtiff4 3.8.2-11 Tag Image File Format (TIFF) libra ii libx11-6 2:1.1.99.2-1ubuntu2 X11 client-side library ii libxext6 2:1.0.99.1-0ubuntu3 X11 miscellaneous extension librar ii libxft2 2.1.13-3ubuntu1 FreeType-based font drawing librar ii libxrender1 1:0.9.4-2 X Rendering Extension client libra ii ncurses-base 5.7+20090207-1ubuntu1 basic terminal type definitions ii zlib1g 1:1.2.3.3.dfsg-12ubuntu2 compression library - runtime rxvt-unicode recommends no packages. Versions of packages rxvt-unicode suggests: ii ttf-dejavu 2.28-1 Metapackage to pull in ttf-dejavu- -- no debconf information
--- src/rxvtfont.C.bukind 2007-11-30 14:36:33.000000000 +0600 +++ src/rxvtfont.C 2007-11-30 14:39:29.000000000 +0600 @@ -1171,12 +1171,21 @@ XGlyphInfo g; XftTextExtents16 (disp, f, &ch, 1, &g); +/* + * bukind: don't use g.width as a width of a character! + * instead use g.xOff, see e.g.: http://keithp.com/~keithp/render/Xft.tutorial + g.width -= g.x; int wcw = WCWIDTH (ch); if (wcw > 0) g.width = (g.width + wcw - 1) / wcw; if (width < g.width ) width = g.width; + */ + int wcw = WCWIDTH (ch); + if (wcw > 1) g.xOff = g.xOff / wcw; + if (width < g.xOff) width = g.xOff; + if (height < g.height ) height = g.height; if (glheight < g.height - g.y) glheight = g.height - g.y; }