mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 10:11:57 +03:00
Use .ttf or .otf file for editor custom font
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user