red / REP

Red Enhancement Process
BSD 3-Clause "New" or "Revised" License
11 stars 4 forks source link

WISH: minimum width measurement of a rich-text face #126

Open hiiamboris opened 2 years ago

hiiamboris commented 2 years ago

I've been inquiring into how to better autofit grid columns to their content, and one of the factors to consider is "don't make columns narrower than the longest word they contain".

Currently the only way to figure out "how wide is the longest word?" that I see is to replace all spaces with new-lines and call size-text.

It would be nice to have this info without text modification.