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 12:54:26 +0300

[Please use Reply All to repy, so that the list is CC'ed.]

> From: Yukio Siraichi <sir.yukio@gmail.com>
> Date: Mon, 17 May 2021 17:26:48 +0900
> 
> > Use those fonts how and in what situations? IOW, could you please
> > describe a complete use scenario where having these fonts in the list
> > would be beneficial? 
> 
> Sure. It happened to me yesterday, where I was trying to use "Cascadia Code 
> SemiLight" as the default
> font. So, I tried adding:
> 
> (set-face-attribute 'default nil :family "Cascadia Code" :weight 'semilight)
> 
> to my "init.el". After restarting emacs, I noticed it wasn't using that font. 
> Specifically, I ran "describe-char" on
> some characters that were using the default face, and noticed the font used 
> was "normal":
> 
> -SAJA-Cascadia Code-light-normal-normal-*-13-*-*-*-m-0-
> 
> Running "describe-font" on that, I found that it was using the "Cascadia 
> Code-Light.otf" font (not the
> semilight I wanted). In fact, no matter what I tried, I couldn't use that 
> semilight font.

But 'semi-light' is already supported by Emacs, so why did you need to
add the 'book' attribute?

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?



reply via email to

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