diff options
| author | Juanma Barranquero | 2006-10-27 22:34:22 +0000 |
|---|---|---|
| committer | Juanma Barranquero | 2006-10-27 22:34:22 +0000 |
| commit | 234b59d7bb1bd34f7c0e533be3ab3d47c1f7095a (patch) | |
| tree | 538152d7354557c61fcd92d3149ade24a43e6a8b /src | |
| parent | 00e4a45fc826f6bb64dfb4c1fe006fc6d2701268 (diff) | |
| download | emacs-234b59d7bb1bd34f7c0e533be3ab3d47c1f7095a.tar.gz emacs-234b59d7bb1bd34f7c0e533be3ab3d47c1f7095a.zip | |
(best_matching_font): Fix logic to decide whether to use overstriking to
simulate bold-face (it was reversed).
Diffstat (limited to 'src')
| -rw-r--r-- | src/xfaces.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) | |||
| 6688 | { | 6688 | { |
| 6689 | /* We want a bold font, but didn't get one; try to use | 6689 | /* We want a bold font, but didn't get one; try to use |
| 6690 | overstriking instead to simulate bold-face. However, | 6690 | overstriking instead to simulate bold-face. However, |
| 6691 | don't overstrike an already-bold fontn unless the | 6691 | don't overstrike an already-bold font unless the |
| 6692 | desired weight grossly exceeds the available weight. */ | 6692 | desired weight grossly exceeds the available weight. */ |
| 6693 | if (got_weight > XLFD_WEIGHT_MEDIUM) | 6693 | if (got_weight > XLFD_WEIGHT_MEDIUM) |
| 6694 | *needs_overstrike = (got_weight - want_weight) > 2; | 6694 | *needs_overstrike = (want_weight - got_weight) > 2; |
| 6695 | else | 6695 | else |
| 6696 | *needs_overstrike = 1; | 6696 | *needs_overstrike = 1; |
| 6697 | } | 6697 | } |