Reproduction Steps
Each line of a TextObject in Roblox is supposed to be rendered at this height (in px):
math.floor(TextObject.TextSize*TextObject.LineHeight)*(lineNum-1)
.
This behavior is properly followed on PC. However, mobile devices do not render TextObjects according to this formula.
This issue is 100% reproducible on:
- OnePlus 7T
- Samsung Galaxy 10+
- iPhone SE 2nd gen
To visualize this rendering issue, we can try overlaying TextLabels at the expected line positions and see how the underlying TextLabel does not align.
Here is an uncopylocked repro place. You can join from a desktop and a phone to witness the difference in behavior. (Pink is overlay labels, green is underlying label)
Here is what it looks like on my laptop: (Win10, RTX 3060, Ryzen 9 5900HS)
Here is what it looks like in the mobile emulator of Studio:
Here is what it looks like on OnePlus 7T: (OxygenOS, Adreno 640, Kryo 485)
Here is what it looks like on iPhone SE 2nd gen:
Expected Behavior
I expect the TextObjects to render the way they do in Studio and on other platforms.
Actual Behavior
See above. The TextObject does not correctly respect the TextSize and LineHeight properties on mobile.
Workaround
No workaround.
Issue Area: Engine
Issue Type: Display
Impact: High
Frequency: Constantly