This commit is contained in:
Lucas 2026-06-23 22:52:16 +02:00 committed by GitHub
commit af86788686
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -166,7 +166,7 @@ static inline Clay_Dimensions Raylib_MeasureText(Clay_StringSlice text, Clay_Tex
maxTextWidth = fmax(maxTextWidth, lineTextWidth);
maxLineCharCount = CLAY__MAX(maxLineCharCount, lineCharCount);
textSize.width = maxTextWidth * scaleFactor + (lineCharCount * config->letterSpacing);
textSize.width = maxTextWidth * scaleFactor + ((maxLineCharCount - 1) * config->letterSpacing);
textSize.height = textHeight;
return textSize;