Subject: Re: bug#51767: 29.0.50; :weight=regular still resolving to medium font weight

From: Lars Ingebrigtsen <[email-masked]>
Date: Fri, 12 Nov 2021 07:17:14 +0100

The issue seems to stem from ftfont_list returning all the font
variations -- except normal/regular.  That function is ... complicated,
and it's a ...

HANG ON A MINUTE!!!!

  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));
    }

Argh.

If I remove that nonsense, it all works.  I'm pushing it now to Emacs 29.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no