diff options
Diffstat (limited to 'editor/plugins/font_config_plugin.cpp')
-rw-r--r-- | editor/plugins/font_config_plugin.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/editor/plugins/font_config_plugin.cpp b/editor/plugins/font_config_plugin.cpp index 6d1e102808..15b268337f 100644 --- a/editor/plugins/font_config_plugin.cpp +++ b/editor/plugins/font_config_plugin.cpp @@ -892,9 +892,9 @@ void FontPreview::_notification(int p_what) { switch (p_what) { case NOTIFICATION_DRAW: { // Draw font name (style). - Ref<Font> font = get_theme_font(SNAME("font"), SNAME("Label")); - int font_size = get_theme_font_size(SNAME("font_size"), SNAME("Label")); - Color text_color = get_theme_color(SNAME("font_color"), SNAME("Label")); + Ref<Font> font = get_theme_font(SceneStringName(font), SNAME("Label")); + int font_size = get_theme_font_size(SceneStringName(font_size), SNAME("Label")); + Color text_color = get_theme_color(SceneStringName(font_color), SNAME("Label")); // Draw font preview. bool prev_ok = true; |