help-gnu-emacs
[Top][All Lists]
Advanced

[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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]