[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to get the actual face attribute?
From: |
Yuan Fu |
Subject: |
Re: How to get the actual face attribute? |
Date: |
Wed, 24 Jun 2020 00:13:26 -0400 |
> 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
- Re: How to get the actual face attribute?, (continued)
- Re: How to get the actual face attribute?, Stefan Monnier, 2020/06/22
- Re: How to get the actual face attribute?, Yuan Fu, 2020/06/22
- Re: How to get the actual face attribute?, Stefan Monnier, 2020/06/22
- Re: How to get the actual face attribute?, Yuan Fu, 2020/06/22
- Re: How to get the actual face attribute?, Stefan Monnier, 2020/06/22
- Emacs hackers all around the world (was: Re: How to get the actual face attribute?), Emanuel Berg, 2020/06/22
- Re: How to get the actual face attribute?,
Yuan Fu <=
- Re: How to get the actual face attribute?, Emanuel Berg, 2020/06/22
- Re: How to get the actual face attribute?, Yuan Fu, 2020/06/24