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

Font formatting (BBCode) in RichTextLabel stops working when using theme type variation #92224

Open
jedomed opened this issue May 21, 2024 · 0 comments

Comments

@jedomed
Copy link

jedomed commented May 21, 2024

Tested versions

  • v4.2.1.stable.official [b09f793]
  • v4.2.2.stable.mono.official [15073af]

System information

Linux Mint 21.1

Issue description

I'm not sure if this is a bug or if I'm missing something. I have a RichTextLabel with BBCode enabled, when it's using the theme's overrides for RichTextLabel it works fine, but when I create a custom type from RichTextLabel then formatting stops working:



("default_color" is the only override)



(No overrides, just Base type = RichTextLabel)

If I manually create font resources and set them in the "bold_font", "italics_font", etc. overrides for the custom type then it works, but I shouldn't have to do that.

Steps to reproduce

  1. Create RichTextLabel with BBCode enabled
  2. Create Theme with a custom RichTextLabel variant
  3. Set RichTextLabel to use variant
  4. BBCode stops working (tags don't render, but no formatting happens)

Minimal reproduction project (MRP)

MRP_RTLVariant.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