Skip to content

Commit

Permalink
Merge pull request #79928 from timothyqiu/fonts
Browse files Browse the repository at this point in the history
Sort system font menu in Inspector
  • Loading branch information
YuriSizov committed Jul 27, 2023
2 parents 6535b74 + 7de4fef commit b2e2973
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions editor/plugins/font_config_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit b2e2973

Please sign in to comment.