Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RichTextLabel has no property for line_spacing, just line_separation #102000

Open
AdamLearns opened this issue Jan 24, 2025 · 0 comments
Open

RichTextLabel has no property for line_spacing, just line_separation #102000

AdamLearns opened this issue Jan 24, 2025 · 0 comments

Comments

@AdamLearns
Copy link
Contributor

AdamLearns commented Jan 24, 2025

Tested versions

  • Reproducible in v4.4.beta1.mono.official [d33da79d3]

System information

macOS Sonoma 14.6.1

Issue description

RichTextLabel has no line_spacing property, which would set the space only between lines. Instead, it has line_separation, which adds that amount of space after each line. E.g. in this picture, there is a lot of blank space below "Line 3":

Image

The best workaround I could find is making a FontVariation that has spacing_bottom set to a negative value while keeping line_separation at a positive value. I believe this is similar to specifying the BBCode [font bt=5] but in such a way that you don't need to modify every RichTextLabel in your game.

Steps to reproduce

  • Make a RichTextLabel
  • Increase its line_separation property to make it more obvious

Minimal reproduction project (MRP)

richtextlabelspacingrepro.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants