emacs-devel
[Top][All Lists]
Advanced

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

Re: Need `truncate-string-to-pixel-width` and `glyph-pixel-width` functi


From: Jimmy Yuen Ho Wong
Subject: Re: Need `truncate-string-to-pixel-width` and `glyph-pixel-width` functions in C
Date: Thu, 24 Oct 2024 16:33:14 +0100

If the scroll bar and the margin are generated programmatically, then
presumably the program which creates them knows their width, or can
calculate that?  If so, the :align-to value should take that into
consideration.

As I said, the problem is letting the window system do the truncation rather than in code. There's no way to tell Emacs to start truncating from the actual content rather than UI elements that Emacs thinks are content. Hence, the original ask. Correct and performant custom truncation that respects pixel width is much much harder than it should be in Emacs.

reply via email to

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