From 7de4fef959329d6ffe31862d88c79772185aa04b Mon Sep 17 00:00:00 2001 From: Haoyu Qiu Date: Wed, 26 Jul 2023 23:56:17 +0800 Subject: [PATCH] Sort system font menu in Inspector --- editor/plugins/font_config_plugin.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/editor/plugins/font_config_plugin.cpp b/editor/plugins/font_config_plugin.cpp index c3d1e920d7c..5d90a746f9d 100644 --- a/editor/plugins/font_config_plugin.cpp +++ b/editor/plugins/font_config_plugin.cpp @@ -1020,6 +1020,7 @@ EditorPropertyFontNamesArray::EditorPropertyFontNamesArray() { if (OS::get_singleton()) { Vector fonts = OS::get_singleton()->get_system_fonts(); + fonts.sort(); for (int i = 0; i < fonts.size(); i++) { menu->add_item(fonts[i], i + 6); }