You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I hand translated the code above from Odin to C, so I'm not sure it works out of the box. Also I use a custom font, I'm afraid I don't have time to setup test with non-custom font right.
The text was updated successfully, but these errors were encountered:
raysan5
changed the title
[raylib] MeasureTextEx does not report correct height when using multi line string
[rtext] MeasureTextEx() does not report correct height when using multi line string
Jan 23, 2024
@karl-zylinski Excuse the late answer, I will try to review it asap. The line-break spacing support was added quite recently, are you using latest raylib version from GitHub master branch?
Issue description
When sending in a multi line string to
MeasureTextEx
it does not report the correct height. The text drawn byDrawTextPro
will often be taller.Environment
Windows 10, GL3 (I guess), GTX 2080 Ti
Issue Screenshot
Drawn multi line text with a dark background color, note that the dark background is less tall than the text:
Code Example
I hand translated the code above from Odin to C, so I'm not sure it works out of the box. Also I use a custom font, I'm afraid I don't have time to setup test with non-custom font right.
The text was updated successfully, but these errors were encountered: