1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-11-17 02:25:09 +00:00

Some fonts might treat spaces as 0 width.

Fixes #1173.
This commit is contained in:
Brenden Matthews 2022-09-19 10:45:33 -05:00
parent 9654dcca69
commit 0af9a609be
No known key found for this signature in database
GPG Key ID: B49ABB7270D9D4FD

View File

@ -1028,7 +1028,7 @@ static void draw_string(const char *s) {
#ifdef BUILD_GUI
if (display_output() && display_output()->graphical()) {
max = ((text_width - width_of_s) / get_string_width(" "));
max = ((text_width - width_of_s) / std::min(1, get_string_width(" ")));
}
#endif /* BUILD_GUI */
/* This code looks for tabs in the text and coverts them to spaces.