Always emit dynamic font change in update_oversampling
Fixes #15787. The issue occurred when two (or more) separate DynamicFont instances used the same DynamicFontAtSize instance due to having equal properties. The first instance updated its data_at_size and emitted "changed" signal, but the second did not because it considered the data_at_size to be up to date, even though it has just been updated.
This commit is contained in:
parent
5cd12f6649
commit
863dd9aa46
4 changed files with 10 additions and 13 deletions
|
|
@ -415,7 +415,7 @@ void fill_default_theme(Ref<Theme> &theme, const Ref<Font> &default_font, const
|
|||
|
||||
theme->set_color("font_color", "Label", Color(1, 1, 1));
|
||||
theme->set_color("font_color_shadow", "Label", Color(0, 0, 0, 0));
|
||||
theme->set_color("font_outline_modulator", "Label", Color(1, 1, 1));
|
||||
theme->set_color("font_outline_modulate", "Label", Color(1, 1, 1));
|
||||
|
||||
theme->set_constant("shadow_offset_x", "Label", 1 * scale);
|
||||
theme->set_constant("shadow_offset_y", "Label", 1 * scale);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue