[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#347790: xterm: boldMode patch



Package: xterm
Version: 208-3.1
Followup-For: Bug #347790

The attached patch fixes this issue, and additionally alters the
behavior of boldMode.  Previously, boldMode only had an effect on the
primary font.  This patch extends the option to also affect the
alternate fonts font1, font2, font3, etc.  This, in my opinion, is
more useful, more consistent, and better coincides with the
description in the manpage.

Cheers,
Tim Pope

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (990, 'unstable'), (700, 'stable'), (500, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15.4
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages xterm depends on:
ii  libc6                    2.3.6-2         GNU C Library: Shared libraries an
ii  libfontconfig1           2.3.2-1.1       generic font configuration library
ii  libice6                  6.9.0.dfsg.1-4  Inter-Client Exchange library
ii  libncurses5              5.5-1           Shared libraries for terminal hand
ii  libsm6                   6.9.0.dfsg.1-4  X Window System Session Management
ii  libx11-6                 4.3.0.dfsg.1-14 X Window System protocol client li
ii  libxaw8                  6.9.0.dfsg.1-4  X Athena widget set library
ii  libxext6                 6.9.0.dfsg.1-4  X Window System miscellaneous exte
ii  libxft2                  2.1.8.2-3       FreeType-based font drawing librar
ii  libxmu6                  6.9.0.dfsg.1-4  X Window System miscellaneous util
ii  libxt6                   6.9.0.dfsg.1-4  X Toolkit Intrinsics
ii  xlibs                    6.9.0.dfsg.1-4  X Window System client libraries m
ii  xlibs-data               6.9.0.dfsg.1-4  X Window System client data

Versions of packages xterm recommends:
ii  xutils                    6.9.0.dfsg.1-4 X Window System utility programs

-- no debconf information
--- fontutils.c	2006-03-14 15:14:11.000000000 -0600
+++ fontutils.c.patched	2006-03-14 15:05:53.000000000 -0600
@@ -704,7 +704,10 @@
 	    }
 	    TRACE(("...derived bold %s\n", myfonts.f_b));
 	}
-	if (fp == 0 || bfs == 0) {
+        if (!screen->bold_mode) {
+            bfs = nfs;
+            TRACE(("...not loading a bold font, as per boldMode\n"));
+        } else if (fp == 0 || bfs == 0) {
 	    bfs = nfs;
 	    TRACE(("...cannot load a matching bold font\n"));
 	} else if (same_font_size(xw, nfs, bfs)

Reply to: