From: Lars Ingebrigtsen Date: Fri, 12 Nov 2021 06:19:19 +0000 (+0100) Subject: Allow choosing regular-weighted fonts when medium-weighted exist X-Git-Tag: emacs-29.0.90~3668^2~20 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=dae3c4e89b27fa008d029a30cf7bd02fc3fbb6e2;p=emacs.git Allow choosing regular-weighted fonts when medium-weighted exist * src/ftfont.c (ftfont_pattern_entity): Allow using both regular and medium-weighted fonts. --- diff --git a/src/ftfont.c b/src/ftfont.c index 12d0d72d276..03e44ec30ee 100644 --- a/src/ftfont.c +++ b/src/ftfont.c @@ -225,8 +225,6 @@ ftfont_pattern_entity (FcPattern *p, Lisp_Object extra) } if (FcPatternGetInteger (p, FC_WEIGHT, 0, &numeric) == FcResultMatch) { - if (numeric >= FC_WEIGHT_REGULAR && numeric < FC_WEIGHT_MEDIUM) - numeric = FC_WEIGHT_MEDIUM; FONT_SET_STYLE (entity, FONT_WEIGHT_INDEX, make_fixnum (numeric)); } if (FcPatternGetInteger (p, FC_SLANT, 0, &numeric) == FcResultMatch)