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

Multiline text properties use code font #62931

Closed
fire-forge opened this issue Jul 12, 2022 · 0 comments · Fixed by #63704
Closed

Multiline text properties use code font #62931

fire-forge opened this issue Jul 12, 2022 · 0 comments · Fixed by #63704

Comments

@fire-forge
Copy link
Contributor

Godot version

v4.0.alpha.custom_build [a6258fd79]

System information

Windows 10

Issue description

All multiline text properties (EditorPropertyMultilineText) use the code font instead of the normal font.

This bug was introduced by #62468

To fix this, these lines need to be wrapped in an if (expression) { condition:

text->add_theme_font_override("font", get_theme_font("expression", "EditorFonts"));
text->add_theme_font_size_override("font_size", get_theme_font_size("expression_size", "EditorFonts"));

Steps to reproduce

  • Create a Label node.
  • Type in the text property box.

Minimal reproduction project

No response

@Calinou Calinou added this to the 4.0 milestone Jul 12, 2022
@Calinou Calinou moved this to To Assess in 4.x Priority Issues Jul 12, 2022
Repository owner moved this from To Assess to Done in 4.x Priority Issues Aug 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants