Fallback to Regular Terminal font before using default

This commit is contained in:
Leroy Hopson 2021-07-24 17:37:04 +07:00
parent f555831915
commit 1083c13276
No known key found for this signature in database
GPG key ID: D2747312A6DB51AA

View file

@ -143,6 +143,8 @@ func _update_theme():
var f: Font
if has_font(font, "Terminal"):
f = get_font(font, "Terminal")
elif has_font("Regular", "Terminal"):
f = get_font("Regular", "Terminal")
else:
if _default_theme.has_font(font, "Terminal"):
f = _default_theme.get_font(font, "Terminal")