From 12d09ed512ef7351bdbfe725622266c132d35748 Mon Sep 17 00:00:00 2001 From: Noah Breedy Date: Wed, 24 Jun 2026 15:38:40 -0400 Subject: [PATCH] [Renderers/Tigr] Modified measure text function Get a better estimate of the texts total measurements --- renderers/tigr/clay_renderer_tigr.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/renderers/tigr/clay_renderer_tigr.h b/renderers/tigr/clay_renderer_tigr.h index cbf94f9..cbc56c0 100644 --- a/renderers/tigr/clay_renderer_tigr.h +++ b/renderers/tigr/clay_renderer_tigr.h @@ -60,8 +60,8 @@ static inline Clay_Dimensions Clay_Tigr_MeasureText(Clay_StringSlice str, Clay_T char* cstr = Clay_to_Cstr(&toTerminate); - int text_width = tigrTextWidth(tfont, cstr); - int text_height = tigrTextHeight(tfont, cstr); + int text_width = tigrTextWidth(tfont, cstr) * (config->fontSize/8); + int text_height = tigrTextHeight(tfont, cstr) * (config->fontSize/8); free(cstr);