[Renderers/Tigr] Modified measure text function

Get a better estimate of the texts total measurements
This commit is contained in:
Noah Breedy 2026-06-24 15:38:40 -04:00
parent 43882c6994
commit 12d09ed512

View file

@ -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);