[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to get the actual face attribute?

From: Perry Smith
Subject: Re: How to get the actual face attribute?
Date: Mon, 22 Jun 2020 12:15:26 -0500

> On Jun 22, 2020, at 12:00 PM, Yuan Fu <> wrote:
>> On Jun 21, 2020, at 11:54 AM, Stefan Monnier <> 
>> 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.
> 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. 

It might help to explain what the bigger objective is.

reply via email to

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