1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-18 09:09:47 +00:00

Sort system font names by alphabetical order

This commit is contained in:
Emmanouil Papadeas 2024-11-23 01:21:22 +02:00
parent 3fb8484ac5
commit 658477ed4b

View file

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