all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Protesilaos Stavrou <info@protesilaos.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: [ELPA] Add fontaine package?
Date: Fri, 29 Apr 2022 10:56:49 +0300	[thread overview]
Message-ID: <87mtg45nlq.fsf@protesilaos.com> (raw)
In-Reply-To: <834k2cbamh.fsf@gnu.org>

> From: Eli Zaretskii <eliz@gnu.org>
> Date: Fri, 29 Apr 2022 10:40:38 +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.

Very well!  I will try this approach and change things accordingly.

-- 
Protesilaos Stavrou
https://protesilaos.com



      reply	other threads:[~2022-04-29  7:56 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
2022-04-29  7:56               ` Protesilaos Stavrou [this message]

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=87mtg45nlq.fsf@protesilaos.com \
    --to=info@protesilaos.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.