GNU bug report logs - #32210
Support medium weighted fonts

Previous Next

Package: emacs;

Reported by: Carlos Pita <carlosjosepita <at> gmail.com>

Date: Thu, 19 Jul 2018 14:07:02 UTC

Severity: normal

Merged with 28351, 51155

Found in versions 26.0.50, 29.0.50

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: Eli Zaretskii <eliz <at> gnu.org>
Cc: carlosjosepita <at> gmail.com, 32210 <at> debbugs.gnu.org
Subject: bug#32210: Support medium weighted fonts
Date: Wed, 20 Oct 2021 16:28:25 +0200
Eli Zaretskii <eliz <at> gnu.org> writes:

> Not sure what exactly you are asking, but does font_style_to_value
> answer that?

No, that function is fine.

I'm asking: What are the semantics of the integers in weight_table?  Do
they have to match up with numbers somewhere else?  The comment just
says that they have to be monotonically increasing, but not what their
meaning is.

If I change

  { 210, { "black", "heavy" }},

to

  { 212, { "black", "heavy" }},

changing to the "black" weight still works.  If I change it to

  { 215, { "black", "heavy" }},

it no longer works, and the font machinery chooses the "normal" font
instead...  which is at 100.  

So I'm guessing the numbers are used in font_score somehow, but the
logic is oblique.

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




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

Previous Next


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