Re: [hackers] [libsl|dmenu][PATCH v2] Fix truncation issues and improve performance
On Mon, Mar 28, 2022 at 05:57:48PM +0600, NRK wrote:
> And on the topic of ellipsis_width, we currently don't account for
> fallback font:
>
> usedfont = drw->fonts;
> drw_font_getexts(usedfont, "...", 3, &ellipsis_width, NULL);
>
> The assumption here was that every font should have '.' but if that
> turns out to be wrong, then the font width will be incorrect.
Attached a patch fixing this issue, as well as a patch guarding against
calling drw_text() with 0 width.
Think both these issues should be extremely rare, but can't hurt dealing
with them anyways.
- NRK
Received on Tue Mar 29 2022 - 15:56:11 CEST
This archive was generated by hypermail 2.3.0
: Tue Mar 29 2022 - 16:00:38 CEST