mirror of
https://github.com/tiennm99/godot.git
synced 2026-08-17 04:25:58 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user