emacs-devel
[Top][All Lists]
Advanced

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

Re: Pixel-based display functions


From: martin rudalics
Subject: Re: Pixel-based display functions
Date: Sun, 01 Feb 2015 17:30:27 +0100

> Maybe I misunderstand what Lars wants to do, but I think
> window-text-pixel-size is the wrong tool for the job: it returns the
> pixel size of text between 2 given positions, whereas Lars needs the
> opposite: where is the position that produces a given pixel size.

That's possible.  But `window-text-pixel-size' would give him a way to
precalculate the sizes of chunks of his text and allow him to manually
insert linebreaks for each column.  After that he would insert spaces as
column separators and go on.  Tedious, but doing the same thing
(calculating line breaks with variable width font) in the display engine
sounds no fun either .

> Also, there's the visual vs logical order issue I mentioned in my
> other mail.

If `window-text-pixel-size' is kaput in that sense I'll have to fix it
anyway.

martin



reply via email to

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