mirror of
https://github.com/godotengine/godot
synced 2024-11-02 09:38:07 +00:00
Merge pull request #11512 from Zylann/custom_font_setting
Allow to set a custom DynamicFont in editor settings [ci skip]
This commit is contained in:
commit
5eb4965050
1 changed files with 2 additions and 2 deletions
|
@ -558,7 +558,7 @@ void EditorSettings::_load_defaults(Ref<ConfigFile> p_extra_config) {
|
|||
set("interface/source_font_size", 14);
|
||||
hints["interface/source_font_size"] = PropertyInfo(Variant::INT, "interface/source_font_size", PROPERTY_HINT_RANGE, "8,96,1", PROPERTY_USAGE_DEFAULT | PROPERTY_USAGE_RESTART_IF_CHANGED);
|
||||
set("interface/custom_font", "");
|
||||
hints["interface/custom_font"] = PropertyInfo(Variant::STRING, "interface/custom_font", PROPERTY_HINT_GLOBAL_FILE, "*.font", PROPERTY_USAGE_DEFAULT | PROPERTY_USAGE_RESTART_IF_CHANGED);
|
||||
hints["interface/custom_font"] = PropertyInfo(Variant::STRING, "interface/custom_font", PROPERTY_HINT_GLOBAL_FILE, "*.font,*.tres,*.res", PROPERTY_USAGE_DEFAULT | PROPERTY_USAGE_RESTART_IF_CHANGED);
|
||||
set("interface/dim_editor_on_dialog_popup", true);
|
||||
set("interface/dim_amount", 0.6f);
|
||||
hints["interface/dim_amount"] = PropertyInfo(Variant::REAL, "interface/dim_amount", PROPERTY_HINT_RANGE, "0,1,0.01", PROPERTY_USAGE_DEFAULT);
|
||||
|
@ -645,7 +645,7 @@ void EditorSettings::_load_defaults(Ref<ConfigFile> p_extra_config) {
|
|||
hints["text_editor/cursor/caret_blink_speed"] = PropertyInfo(Variant::REAL, "text_editor/cursor/caret_blink_speed", PROPERTY_HINT_RANGE, "0.1, 10, 0.1");
|
||||
|
||||
set("text_editor/theme/font", "");
|
||||
hints["text_editor/theme/font"] = PropertyInfo(Variant::STRING, "text_editor/theme/font", PROPERTY_HINT_GLOBAL_FILE, "*.font");
|
||||
hints["text_editor/theme/font"] = PropertyInfo(Variant::STRING, "text_editor/theme/font", PROPERTY_HINT_GLOBAL_FILE, "*.font,*.tres,*.res");
|
||||
set("text_editor/completion/auto_brace_complete", false);
|
||||
set("text_editor/files/restore_scripts_on_load", true);
|
||||
set("text_editor/completion/complete_file_paths", true);
|
||||
|
|
Loading…
Reference in a new issue