]> git.eshelyaron.com Git - emacs.git/commitdiff
Allow choosing regular-weighted fonts when medium-weighted exist
authorLars Ingebrigtsen <larsi@gnus.org>
Fri, 12 Nov 2021 06:19:19 +0000 (07:19 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Fri, 12 Nov 2021 06:19:25 +0000 (07:19 +0100)
* src/ftfont.c (ftfont_pattern_entity): Allow using both regular
and medium-weighted fonts.

src/ftfont.c

index 12d0d72d2764c0679784c1c5ed9c384568f8e023..03e44ec30ee0658e6eb142ac5f4b8eab6b49ee7f 100644 (file)
@@ -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)