Line breaks in rich text do not respect LineHeight property

When using line breaks (either <br/> or an actual line break character) with rich text enabled, empty lines will not respect the LineHeight property value and will always have a line height of 1.

With RichText enabled and LineHeight of 1.111 (each text line is meant to line up with the lines in the background)
06-10-23_13_28_RobloxStudioBeta_Az7Ft

Expected behavior

Without RichText enabled and LineHeight of 1.111
06-10-23_13_29_RobloxStudioBeta_t8nWi

6 Likes

Great find JoritoChip, I was wondering why my LineHeight was breaking. I did not know it related to the property RichText…

1 Like

Move it down .111 studs…? I think this may be a helpful solution.

1 Like

Thanks for the report! We’ve filed a ticket in our internal database and we’ll follow up when we have an update for you.

2 Likes

On a similar note, I found that UIScale does not properly scale LineHeight. Should I make a separate bug report for this?

This should now be fixed! LineHeight with line breaks should now render the same for RichText and non-RichText. Please let us know if you continue to see any issues!

Update: This fix unfortunately caused some other behavior with RichText to break, so we had to revert it. We are working on the issue, and will follow-up when this has been fixed again.

1 Like

Hi joritochip, thanks for reporting! Can you make a bug report or dm me with more details on what you would expect to see with UIScale and LineHeight vs. what is currently occurring? This helps up track bugs reported and narrow down the exact problem.

This issue should now be fixed again! Please let us know if you continue to see any errors.

1 Like