(best_matching_font): Fix logic to decide whether to use overstriking to
simulate bold-face (it was reversed).
This commit is contained in:
parent
00e4a45fc8
commit
234b59d7bb
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue