From: Eli Zaretskii <eliz@gnu.org>
To: Protesilaos Stavrou <info@protesilaos.com>
Cc: emacs-devel@gnu.org
Subject: Re: [ELPA] Add fontaine package?
Date: Fri, 29 Apr 2022 10:40:38 +0300 [thread overview]
Message-ID: <834k2cbamh.fsf@gnu.org> (raw)
In-Reply-To: <87pml05p4n.fsf@protesilaos.com> (message from Protesilaos Stavrou on Fri, 29 Apr 2022 10:23:52 +0300)
> From: Protesilaos Stavrou <info@protesilaos.com>
> Cc: emacs-devel@gnu.org
> Date: Fri, 29 Apr 2022 10:23:52 +0300
>
> It is possible to have a typeface that has a light weight and another
> that hasn't. If the user defines two presets in fontaine-presets and
> tries to switch from the one with the light weight to the other without
> it, they will encounter the aforementioned behaviour of
> set-face-attribute.
Did you try using set-face-font instead? Its FONT argument can be a
font-spec, so you should be able to say things like
(set-face-font 'default (font-spec :family "Hack" :weight 'light))
and get what you want, I think.
next prev parent reply other threads:[~2022-04-29 7:40 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-27 8:03 [ELPA] Add fontaine package? Protesilaos Stavrou
2022-04-27 17:00 ` Stefan Monnier
2022-04-28 5:37 ` Protesilaos Stavrou
2022-04-28 3:18 ` Richard Stallman
2022-04-28 5:47 ` Protesilaos Stavrou
2022-04-28 7:57 ` Eli Zaretskii
2022-04-28 8:23 ` Protesilaos Stavrou
2022-04-28 9:41 ` Eli Zaretskii
2022-04-29 7:02 ` Protesilaos Stavrou
2022-04-29 7:15 ` Eli Zaretskii
2022-04-29 7:23 ` Protesilaos Stavrou
2022-04-29 7:40 ` Eli Zaretskii [this message]
2022-04-29 7:56 ` Protesilaos Stavrou
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=834k2cbamh.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=info@protesilaos.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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).