changeset 73509:2cb36b82c88a

(best_matching_font): Fix logic to decide whether to use overstriking to simulate bold-face (it was reversed).
author Juanma Barranquero <lekktu@gmail.com>
date Fri, 27 Oct 2006 22:34:22 +0000
parents 1c302a099242
children 2c1760046d15
files src/xfaces.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/xfaces.c	Fri Oct 27 15:47:36 2006 +0000
+++ b/src/xfaces.c	Fri Oct 27 22:34:22 2006 +0000
@@ -6688,10 +6688,10 @@
 	{
 	  /* We want a bold font, but didn't get one; try to use
 	     overstriking instead to simulate bold-face.  However,
-	     don't overstrike an already-bold fontn unless the
+	     don't overstrike an already-bold font unless the
 	     desired weight grossly exceeds the available weight.  */
 	  if (got_weight > XLFD_WEIGHT_MEDIUM)
-	    *needs_overstrike = (got_weight - want_weight) > 2;
+	    *needs_overstrike = (want_weight - got_weight) > 2;
 	  else
 	    *needs_overstrike = 1;
 	}