You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-13 13:31:48 +00:00
Sort system font menu in Inspector
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user