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: Eli Zaretskii
Subject: Re: How to get the actual face attribute?
Date: Sun, 21 Jun 2020 17:52:46 +0300

> From: Yuan Fu <casouri@gmail.com>
> Date: Sun, 21 Jun 2020 00:01:37 -0400
> 
> When writing my package I need to get height of the face at point. But 
> `face-attribute` doesn’t take face remapping into account, which gives wrong 
> answers. Is there a reliable way to get the actual face attribute that’s used 
> for display? Thanks.

>From Lisp or from C?

In general, you cannot know that except by displaying that text or
emulating its display, because the face is fully realized only while
displaying text that is affected by the face.



reply via email to

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