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 not inherited in theme type variation #80731

Closed
jotson opened this issue Aug 17, 2023 · 1 comment · Fixed by #101066
Closed

Font not inherited in theme type variation #80731

jotson opened this issue Aug 17, 2023 · 1 comment · Fixed by #101066
Milestone

Comments

@jotson
Copy link
Contributor

jotson commented Aug 17, 2023

Godot version

4.1.1.stable

System information

Ubuntu Linux 22.04, Nvidia

Issue description

Creating a new theme type variation that inherits from a Base Type of Button does not inherit the font of the Button. Instead, it inherits from the Default Font for the theme and ignores the Base Type font. However, the inherited button does correctly inherit other properties like Styleboxes.

I expected the new button to inherit all of the properties of the base type including the font.

Steps to reproduce

  1. Create a new theme
  2. Set a default font for the theme
  3. Create a theme item for Button
  4. Add a different custom font for the Button
  5. Create a theme item called Button2
  6. Set the Base Type for Button2 to Button
  7. Add a Button to a scene
  8. Set the Type Variation to Button2

Minimal reproduction project

ThemeTypeFontBug.zip

@DanielGSilva
Copy link

This also applies to font size.

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

Successfully merging a pull request may close this issue.

5 participants