Summary:Text::get_bounds returns incorrect Rectangles when the first character is not the tallest one in the string.
Steps to reproduce:
Create any Text where one of the characters after the first character is taller than the first. The longer the string is, the more the Rectangle returned by Text::get_bounds will be shifted below where it should be.
Summary:
Text::get_bounds
returns incorrectRectangle
s when the first character is not the tallest one in the string.Steps to reproduce: Create any
Text
where one of the characters after the first character is taller than the first. The longer the string is, the more theRectangle
returned byText::get_bounds
will be shifted below where it should be.https://user-images.githubusercontent.com/2637802/107469961-aaa1c080-6b38-11eb-8c93-be85c15187d1.mp4
Expected behavior: The
Rectangle
should correctly surround the visible bounds of theText
.