From: Yuan Fu <casouri@gmail.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: help-gnu-emacs@gnu.org
Subject: Re: How to get the actual face attribute?
Date: Wed, 24 Jun 2020 00:13:26 -0400 [thread overview]
Message-ID: <E3267D51-CB57-4FCD-892B-3C45E35D9925@gmail.com> (raw)
In-Reply-To: <jwv366mak53.fsf-monnier+emacs@gnu.org>
> On Jun 22, 2020, at 5:05 PM, Stefan Monnier <monnier@iro.umontreal.ca> wrote:
>
>> How should I recompute the text scale? Currently I calculate it from
>>
>> (expt text-scale-mode-step text-scale-mode-amount)
>>
>> Which is what text-scale-mode uses. (Face remap is hard to calculate so
>> I thought I can just support text-scale-mode.)
>
> You shouldn't look at `text-scale-*` at all and instead ask the display
> code which font it will use.
>
> [ But note that there's the issue of *computing* and then there's the
> issue of *re*computing (i.e. how to detect when it needs to be
> refreshed and how to make sure it is refreshed then). ]
>
Right. I just advised text-scale functions for now. I think that should work for most of the use cases.
Yuan
next prev parent reply other threads:[~2020-06-24 4:13 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-21 4:01 How to get the actual face attribute? Yuan Fu
2020-06-21 14:52 ` Eli Zaretskii
2020-06-21 14:55 ` Yuan Fu
2020-06-21 15:03 ` Eli Zaretskii
2020-06-21 15:54 ` Stefan Monnier
2020-06-22 17:00 ` Yuan Fu
2020-06-22 17:15 ` Perry Smith
2020-06-22 17:21 ` Yuan Fu
2020-06-22 18:47 ` Eli Zaretskii
2020-06-22 19:07 ` Yuan Fu
2020-06-22 18:56 ` Stefan Monnier
2020-06-22 19:10 ` Yuan Fu
2020-06-22 19:49 ` Stefan Monnier
2020-06-22 19:54 ` Yuan Fu
2020-06-22 21:05 ` Stefan Monnier
2020-06-22 21:14 ` Emacs hackers all around the world (was: Re: How to get the actual face attribute?) Emanuel Berg via Users list for the GNU Emacs text editor
2020-06-24 4:13 ` Yuan Fu [this message]
2020-06-22 21:27 ` How to get the actual face attribute? Emanuel Berg via Users list for the GNU Emacs text editor
2020-06-24 4:12 ` Yuan Fu
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=E3267D51-CB57-4FCD-892B-3C45E35D9925@gmail.com \
--to=casouri@gmail.com \
--cc=help-gnu-emacs@gnu.org \
--cc=monnier@iro.umontreal.ca \
/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.