emacs-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] Use fontconfig spec for parsing font-weight.


From: Eli Zaretskii
Subject: Re: [PATCH] Use fontconfig spec for parsing font-weight.
Date: Mon, 17 May 2021 13:29:05 +0300

> Cc: emacs-devel@gnu.org
> From: Yukio Siraichi <sir.yukio@gmail.com>
> Date: Mon, 17 May 2021 19:11:33 +0900
> 
> > 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.

Thanks, I hope someone with access to such a system could debug this
and figure out why it doesn't work.  My reading of the code is that
the weight value of 55 should be interpreted as 'light', but I'm
probably missing something.



reply via email to

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