diff options
author | Noshyaar <poommetee@protonmail.com> | 2017-12-27 10:17:53 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-27 10:17:53 +0700 |
commit | d5f92c2baa5aa9d23443e5ea4450b5c4501976ca (patch) | |
tree | 8d9df33989e42d920ab9b77ee49856f54f6bff9e /editor | |
parent | d5918b5da6438722f91f4ec0384941d0315e9dd2 (diff) | |
parent | 056bc123f8186248c1869224a6a7afbfd23bfc51 (diff) |
Merge pull request #15081 from volzhs/fix-status-font
Fix text editor status font
Diffstat (limited to 'editor')
-rw-r--r-- | editor/editor_fonts.cpp | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/editor/editor_fonts.cpp b/editor/editor_fonts.cpp index 8aca007e6b..a76c419152 100644 --- a/editor/editor_fonts.cpp +++ b/editor/editor_fonts.cpp @@ -173,11 +173,12 @@ void editor_register_fonts(Ref<Theme> p_theme) { p_theme->set_font("output_source", "EditorFonts", df_output_code); Ref<DynamicFont> df_text_editor_status_code; - df_output_code.instance(); - df_output_code->set_size(14 * EDSCALE); - df_output_code->set_spacing(DynamicFont::SPACING_TOP, -EDSCALE); - df_output_code->set_spacing(DynamicFont::SPACING_BOTTOM, -EDSCALE); - df_output_code->set_font_data(dfmono); - MAKE_FALLBACKS(df_output_code); - p_theme->set_font("status_source", "EditorFonts", df_output_code); + df_text_editor_status_code.instance(); + df_text_editor_status_code->set_size(14 * EDSCALE); + df_text_editor_status_code->set_spacing(DynamicFont::SPACING_TOP, -EDSCALE); + df_text_editor_status_code->set_spacing(DynamicFont::SPACING_BOTTOM, -EDSCALE); + df_text_editor_status_code->set_font_data(dfmono); + MAKE_FALLBACKS(df_text_editor_status_code); + + p_theme->set_font("status_source", "EditorFonts", df_text_editor_status_code); } |