all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Yukio Siraichi <sir.yukio@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: [PATCH] Use fontconfig spec for parsing font-weight.
Date: Mon, 17 May 2021 19:11:33 +0900	[thread overview]
Message-ID: <a95537bb-665c-ba2a-1c28-22d45efbe92f@gmail.com> (raw)
In-Reply-To: <83mtstu1m5.fsf@gnu.org>

> 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.




  reply	other threads:[~2021-05-17 10:11 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 ` [PATCH] Use fontconfig spec for parsing font-weight Eli Zaretskii
2021-05-17 10:11   ` Yukio Siraichi [this message]
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=a95537bb-665c-ba2a-1c28-22d45efbe92f@gmail.com \
    --to=sir.yukio@gmail.com \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    /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.