aboutsummaryrefslogtreecommitdiff
path: root/editor/editor_themes.cpp
diff options
context:
space:
mode:
authorvolzhs2017-12-27 03:14:48 +0900
committervolzhs2017-12-27 03:14:48 +0900
commit2c8ebab93b8bc534c8960cbbf876c19c9ac71967 (patch)
tree83fe232a45a0be6beac88fea1535bc53589f7b29 /editor/editor_themes.cpp
parentedd3bd8cb8a64c1c5bf770c7103809a0ba64a4f0 (diff)
downloadgodot-2c8ebab93b8bc534c8960cbbf876c19c9ac71967.tar.gz
godot-2c8ebab93b8bc534c8960cbbf876c19c9ac71967.tar.zst
godot-2c8ebab93b8bc534c8960cbbf876c19c9ac71967.zip
Use .ttf or .otf file for editor custom font
Diffstat (limited to '')
-rw-r--r--editor/editor_themes.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/editor/editor_themes.cpp b/editor/editor_themes.cpp
index 5610baa77..841d50e3d 100644
--- a/editor/editor_themes.cpp
+++ b/editor/editor_themes.cpp
@@ -1100,16 +1100,5 @@ Ref<Theme> create_custom_theme(const Ref<Theme> p_theme) {
theme = create_editor_theme(p_theme);
}
- String global_font = EditorSettings::get_singleton()->get("interface/editor/custom_font");
- if (global_font != "") {
- Ref<Font> fnt = ResourceLoader::load(global_font);
- if (fnt.is_valid()) {
- if (!theme.is_valid()) {
- theme.instance();
- }
- theme->set_default_theme_font(fnt);
- }
- }
-
return theme;
}