From: Eli Zaretskii <eliz@gnu.org>
To: Yukio Siraichi <sir.yukio@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: [PATCH] Use fontconfig spec for parsing font-weight.
Date: Mon, 17 May 2021 12:54:26 +0300 [thread overview]
Message-ID: <83mtstu1m5.fsf@gnu.org> (raw)
In-Reply-To: <1b6ef436-2f32-bfed-f0a8-f55aa4852ccd@gmail.com> (message from Yukio Siraichi on Mon, 17 May 2021 17:26:48 +0900)
[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?
next parent reply other threads:[~2021-05-17 9:54 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1b6ef436-2f32-bfed-f0a8-f55aa4852ccd@gmail.com>
2021-05-17 9:54 ` Eli Zaretskii [this message]
2021-05-17 10:11 ` [PATCH] Use fontconfig spec for parsing font-weight Yukio Siraichi
2021-05-17 10:29 ` Eli Zaretskii
2021-05-17 4:37 Yukio Siraichi
2021-05-17 6:14 ` Eli Zaretskii
[not found] ` <75349245-3caa-ea30-939d-0a2b8bc32aa5@gmail.com>
2021-05-17 7:30 ` Eli Zaretskii
2021-05-17 7:44 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83mtstu1m5.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=sir.yukio@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.