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

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

bug#32210: Support medium weighted fonts


From: Lars Ingebrigtsen
Subject: bug#32210: Support medium weighted fonts
Date: Wed, 20 Oct 2021 15:20:25 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Eli Zaretskii <eliz@gnu.org> writes:

>> -  { 205, { "extra-bold", "extrabold" }},
>> -  { 210, { "ultra-bold", "ultrabold", "black" }}
>> 
>> What are those numbers?  Is it just an ordering, and it doesn't matter
>> what the numbers are?  Or are they used when instantiating fonts
>> somewhere?
>
> It's used in faces.el.

The numbers are?  The data ends up in font-weight-table, but this is the
only place I can find in faces.el that uses that variable:

(defun face-valid-attribute-values (attribute &optional frame)

[...]

           (:weight
            (mapcar #'(lambda (x) (cons (symbol-name (aref x 1)) (aref x 1)))
                    font-weight-table))


-- 
(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]