Browse Source

Sort system font menu in Inspector

Haoyu Qiu 2 years ago
parent
commit
7de4fef959
1 changed files with 1 additions and 0 deletions
  1. 1 0
      editor/plugins/font_config_plugin.cpp

+ 1 - 0
editor/plugins/font_config_plugin.cpp

@@ -1020,6 +1020,7 @@ EditorPropertyFontNamesArray::EditorPropertyFontNamesArray() {
 
 	if (OS::get_singleton()) {
 		Vector<String> fonts = OS::get_singleton()->get_system_fonts();
+		fonts.sort();
 		for (int i = 0; i < fonts.size(); i++) {
 			menu->add_item(fonts[i], i + 6);
 		}