With the first patch the text is still allowed to bleed into the right hand side padding as long as it fits.
I worked around that by reducing w with 2 * lpad and adding lpad to x before returning. Overall it makes sense. I'd assume the code in dwm would be identical. I was thinking that the function drw_font_getexts might get removed, it was probably used for more in previous iterations. On Tue, Mar 22, 2022 at 5:21 PM NRK <n...@disroot.org> wrote: > Hi, > > Attached 3 patches: > > The first one is fixes the truncation issues in drw_text() and also > improves it's performance on large strings. The second one improves > cacloffset()'s performance. And the third improves startup time with > larger unicode strings. > > Additional detailed information are written on each commit message. > > - NRK > -- Stein Gunnar Bakkeby OpenBet Developer bakk...@gmail.com