]> git.eshelyaron.com Git - emacs.git/commitdiff
(best_matching_font): Fix logic to decide whether to use overstriking to
authorJuanma Barranquero <lekktu@gmail.com>
Fri, 27 Oct 2006 22:34:22 +0000 (22:34 +0000)
committerJuanma Barranquero <lekktu@gmail.com>
Fri, 27 Oct 2006 22:34:22 +0000 (22:34 +0000)
simulate bold-face (it was reversed).

src/xfaces.c

index 3dc5ddc3401062e62422c6575d40fa74872b4a38..c408a7d368541f4723bd441b649e68604fe32ec2 100644 (file)
@@ -6688,10 +6688,10 @@ best_matching_font (f, attrs, fonts, nfonts, width_ratio, needs_overstrike)
        {
          /* 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;
        }