[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: |
Mon, 22 Jun 2020 13:00:42 -0400 |
> On Jun 21, 2020, at 11:54 AM, Stefan Monnier <monnier@iro.umontreal.ca> wrote:
>
>> When writing my package I need to get height of the face at point.
>
> Note that there may be simultaneously several different such heights if
> point is shown simultaneously in different frames.
>
>
> Stefan
>
>
Thanks. Unfortunately I think I asked an x-y question. What I really want to
know is the width of the glyph and I thought I can just multiply the height
factor to the original width of the glyph. It seems not to be the case. The
multiplied result doesn’t match with the width on glass. More precisely :height
* glyph width != posn of point after - posn of point. Is this expected?
Also I can’t use posn for calculation since sometimes the text might not be on
screen.
Yuan
- How to get the actual face attribute?, Yuan Fu, 2020/06/21
- Re: How to get the actual face attribute?, Eli Zaretskii, 2020/06/21
- Re: How to get the actual face attribute?, Stefan Monnier, 2020/06/21
- Re: How to get the actual face attribute?,
Yuan Fu <=
- 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