From: Juanma Barranquero Date: Fri, 27 Oct 2006 22:34:22 +0000 (+0000) Subject: (best_matching_font): Fix logic to decide whether to use overstriking to X-Git-Tag: emacs-pretest-22.0.91~497 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=234b59d7bb1bd34f7c0e533be3ab3d47c1f7095a;p=emacs.git (best_matching_font): Fix logic to decide whether to use overstriking to simulate bold-face (it was reversed). --- diff --git a/src/xfaces.c b/src/xfaces.c index 3dc5ddc3401..c408a7d3685 100644 --- a/src/xfaces.c +++ b/src/xfaces.c @@ -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; }