From 658477ed4be591c24c568328f679f7f466fdecb7 Mon Sep 17 00:00:00 2001 From: Emmanouil Papadeas <35376950+OverloadedOrama@users.noreply.github.com> Date: Sat, 23 Nov 2024 01:21:22 +0200 Subject: [PATCH] Sort system font names by alphabetical order --- src/Autoload/Global.gd | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Autoload/Global.gd b/src/Autoload/Global.gd index affc6af29..972c0ab8b 100644 --- a/src/Autoload/Global.gd +++ b/src/Autoload/Global.gd @@ -1066,7 +1066,9 @@ func get_available_font_names() -> PackedStringArray: if font_name in font_names: continue font_names.append(font_name) - for system_font_name in OS.get_system_fonts(): + var system_fonts := OS.get_system_fonts() + system_fonts.sort() + for system_font_name in system_fonts: if system_font_name in font_names: continue font_names.append(system_font_name)