bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Lars Ingebrigtsen
Subject: bug#51767: 29.0.50; :weight=regular still resolving to medium font weight
Date: Fri, 12 Nov 2021 07:17:14 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

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






reply via email to

[Prev in Thread] Current Thread [Next in Thread]