GNU bug report logs - #51767
29.0.50; :weight=regular still resolving to medium font weight

Previous Next

Package: emacs;

Reported by: Nick <nick <at> idylls.net>

Date: Thu, 11 Nov 2021 15:20:02 UTC

Severity: normal

Found in version 29.0.50

Fixed in version 29.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Nick <nick <at> idylls.net>
Cc: 51767 <at> debbugs.gnu.org
Subject: bug#51767: 29.0.50; :weight=regular still resolving to medium font weight
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





This bug report was last modified 3 years and 244 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.