mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-14 15:28:14 +00:00
REVIEWED: Issue #3105
This commit is contained in:
@@ -1227,7 +1227,7 @@ Vector2 MeasureTextEx(Font font, const char *text, float fontSize, float spacing
|
||||
|
||||
if (tempTextWidth < textWidth) tempTextWidth = textWidth;
|
||||
|
||||
textSize.x = tempTextWidth*scaleFactor + (float)((tempByteCounter - 1)*spacing); // Adds chars spacing to measure
|
||||
textSize.x = (tempTextWidth + (float)((tempByteCounter - 1)*spacing))*scaleFactor;
|
||||
textSize.y = textHeight*scaleFactor;
|
||||
|
||||
return textSize;
|
||||
|
Reference in New Issue
Block a user