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:
parent
3fb8484ac5
commit
658477ed4b
|
@ -1066,7 +1066,9 @@ func get_available_font_names() -> PackedStringArray:
|
||||||
if font_name in font_names:
|
if font_name in font_names:
|
||||||
continue
|
continue
|
||||||
font_names.append(font_name)
|
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:
|
if system_font_name in font_names:
|
||||||
continue
|
continue
|
||||||
font_names.append(system_font_name)
|
font_names.append(system_font_name)
|
||||||
|
|
Loading…
Reference in a new issue