Merge pull request #79928 from timothyqiu/fonts

Sort system font menu in Inspector
This commit is contained in:
Yuri Sizov 2023-07-27 15:22:47 +02:00
commit b2e2973a67

View file

@ -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);
}