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

X Strike Force X.Org X11 SVN commit: r360 - in trunk/debian: . patches



Author: dnusinow
Date: 2005-07-17 09:49:01 -0500 (Sun, 17 Jul 2005)
New Revision: 360

Added:
   trunk/debian/patches/002a_xterm_no_overstrike_bold_fonts.diff
Modified:
   trunk/debian/changelog
Log:
Changes by Eugene Konev:

   - Add patch 002a_xterm_no_overstrike_bold_fonts.diff to fix xterm bold
     fonts ugliness; Closes: #318162


Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog	2005-07-17 14:41:47 UTC (rev 359)
+++ trunk/debian/changelog	2005-07-17 14:49:01 UTC (rev 360)
@@ -34,7 +34,12 @@
        and proper.
      - Drop libstdc++6-dev dependency entirely, since build-essential will
        bring that in.  Also drop libc6-dev dependency. Closes: #318353
+       
+  Changes by Eugene Konev:
 
+     - Add patch 002a_xterm_no_overstrike_bold_fonts.diff to fix xterm bold
+       fonts ugliness; Closes: #318162
+
  -- David Nusinow <dnusinow@debian.org>  Tue, 12 Jul 2005 16:52:39 -0400
 
 xorg-x11 (6.8.2.dfsg.1-2) unstable; urgency=low

Added: trunk/debian/patches/002a_xterm_no_overstrike_bold_fonts.diff
===================================================================
--- trunk/debian/patches/002a_xterm_no_overstrike_bold_fonts.diff	2005-07-17 14:41:47 UTC (rev 359)
+++ trunk/debian/patches/002a_xterm_no_overstrike_bold_fonts.diff	2005-07-17 14:49:01 UTC (rev 360)
@@ -0,0 +1,32 @@
+$Id$
+
+Fix font selection issues in xterm which causes a font name stored in
+normal to be overwritten by a bold font name, and then normal is used in
+comparison with a myfonts.f_b to decide whether they are the same and
+whether to turn on overstriking. This causes bold fonts to look like
+garbage.
+
+This patch by Eugene Konev.
+
+Index: xorg-x11-6.8.2.dfsg.1/programs/xterm/fontutils.c
+===================================================================
+--- xorg-x11-6.8.2.dfsg.1.orig/programs/xterm/fontutils.c	2005-07-16 22:03:19.000000000 +0800
++++ xorg-x11-6.8.2.dfsg.1/programs/xterm/fontutils.c	2005-07-16 22:06:26.000000000 +0800
+@@ -647,7 +647,7 @@
+     Pixel new_normal;
+     Pixel new_revers;
+     char *tmpname = NULL;
+-    char normal[MAX_FONTNAME];
++    char normal[MAX_FONTNAME], bold[MAX_FONTNAME];
+     Bool proportional = False;
+ 
+     memset(&myfonts, 0, sizeof(myfonts));
+@@ -721,7 +721,7 @@
+ 	}
+ 
+ 	if (myfonts.f_wb == 0 && !is_double_width_font(bfs)) {
+-	    fp = get_font_name_props(screen->display, bfs, normal);
++	    fp = get_font_name_props(screen->display, bfs, bold);
+ 	    if (fp != 0) {
+ 		myfonts.f_wb = widebold_font_name(fp);
+ 		TRACE(("...derived wide/bold %s\n", myfonts.f_wb));



Reply to: