Skip to content

Commit

Permalink
Allow choosing regular-weighted fonts when medium-weighted exist
Browse files Browse the repository at this point in the history
* src/ftfont.c (ftfont_pattern_entity): Allow using both regular
and medium-weighted fonts.
  • Loading branch information
larsmagne committed Nov 12, 2021
1 parent fc00fe5 commit dae3c4e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/ftfont.c
Expand Up @@ -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)
Expand Down

0 comments on commit dae3c4e

Please sign in to comment.