[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Use fontconfig spec for parsing font-weight.
From: |
Yukio Siraichi |
Subject: |
Re: [PATCH] Use fontconfig spec for parsing font-weight. |
Date: |
Mon, 17 May 2021 19:11:33 +0900 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 |
But 'semi-light' is already supported by Emacs, so why did you need to
add the 'book' attribute?
I didn't really add the 'book' attribute. It was already there (as the last
alias of 'semi-light'). I added a new row, and moved the 'semilight' aliases
with it (left 'book' there, though). My guess is that, since it doesn't
recognize the weight value (55) passed by 'fontconfig', it fallbacks to other
weight values. So, what I did is to add a new weight value (the number that
'fontconfig' converted to, from the OTF file).
What happens if you do the above separately, that is with 2 calls
instead of just one:
(set-face-attribute 'default nil :family "Cascadia Code")
(set-face-attribute 'default nil :weight 'semi-light)
Does this work?
Apparently, not.