From 8869f8e097fb5c76a274689f35c831dad9cc5c21 Mon Sep 17 00:00:00 2001 From: ne_mene Date: Mon, 2 Mar 2026 02:07:33 +0100 Subject: gap --- src/tsar.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/tsar.c') diff --git a/src/tsar.c b/src/tsar.c index ae54107..b84c252 100644 --- a/src/tsar.c +++ b/src/tsar.c @@ -131,7 +131,7 @@ void draw_text(const char* text, int x, int y) { } void draw_comp_set(float pos_ratio, comp_t **set, int size) { - int width = 0; + int width = (size - 1) * comp_gap; for (int i = 0; i < size; i++) { comp_t *comp = set[i]; width += font->max_advance_width * utf8_strlen(comp->data); @@ -146,6 +146,7 @@ void draw_comp_set(float pos_ratio, comp_t **set, int size) { draw_text(comp->data, x, y); x += font->max_advance_width * utf8_strlen(comp->data); + x += comp_gap; } } -- cgit v1.3-2-g0d8e