You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can change textedit's color via: $TextEdit.add_color_override("font_color", Color8(254,171,31)) but you cannot change the font size via $TextEdit.add_font_override("font_size",100)
#42405
Closed
BracerJack opened this issue
Sep 29, 2020
· 3 comments
Issue description:
You can change textedit's color via: $TextEdit.add_color_override("font_color", Color8(254,171,31)) but you cannot change the font size via $TextEdit.add_font_override("font_size",100) ? Why the inconsistency ?
Steps to reproduce:
I am using dynamic font.
Minimal reproduction project:
The text was updated successfully, but these errors were encountered:
BracerJack
changed the title
You can change textedit's color via: $TextEdit.add_color_override("font_color", Color8(254,171,31)) but you cannot change the font size via $TextEdit.add_font_override("font_size",100) ?
You can change textedit's color via: $TextEdit.add_color_override("font_color", Color8(254,171,31)) but you cannot change the font size via $TextEdit.add_font_override("font_size",100)
Sep 29, 2020
font_size is not a property of TextEdit, but of the Font resource. Fonts don't have any color assigned, so whatever draws the text decides the color, hence why font_color is a property of certain controls. This looks like inconsistency, but makes sense if you understand the difference.
Godot version:
3.2.2
OS/device including version:
Issue description:
You can change textedit's color via: $TextEdit.add_color_override("font_color", Color8(254,171,31)) but you cannot change the font size via $TextEdit.add_font_override("font_size",100) ? Why the inconsistency ?
Steps to reproduce:
I am using dynamic font.
Minimal reproduction project:
The text was updated successfully, but these errors were encountered: