[Top][All Lists]

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

Re: width of propertized string

From: Stefan Monnier
Subject: Re: width of propertized string
Date: Thu, 05 Jun 2008 15:47:16 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

> Given a propertized string, how would one find out what its (pixel)
> dimensions are going to be?

Display it, measure its size.

> This is important to justify text and other graphical elements properly.
> It is also necessary to correctly wrap (variable-width) text before
> displaying it.

The font to be used depends on the frame where it's displayed, so the
size of the text needs to be considered in the context where it'll
be displayed.

> I have asked about this a while ago, but I don't think anything has been
> implemented.  I'd be happy to give it a try, but I need pointers as regards
> which functions to use: I don't know the display engine at all.

Indeed, it hasn't been implemented AFAIK.
I guess you'd want to look at move_it_to.


reply via email to

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