diff options
| author | Jack Jamison <jackqjamison@gmail.com> | 2025-10-17 19:58:35 -0400 |
|---|---|---|
| committer | Jack Jamison <jackqjamison@gmail.com> | 2025-10-17 19:59:26 -0400 |
| commit | 42af50b090f03e920368de3fd6872cf5b62c918e (patch) | |
| tree | dc032a7e20f35e96b45fec80b3287ade868af6b8 /font.c | |
| parent | 3e6eeaaf599f1082c02279bb9269de9644cdfab3 (diff) | |
fix spacing and sizing and shit
Diffstat (limited to 'font.c')
| -rw-r--r-- | font.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -148,5 +148,6 @@ int atlas_get_strwidth(client_state* state, const char* str) { void atlas_calc_item_widths(client_state* state) { array_for_all(item_t, item, state->items) { item->pixel_len = atlas_get_strwidth(state, item->text); + state->required_width = MAX(state->required_width, item->pixel_len + state->line_height / 2.0f); } } |
