mirror of
https://github.com/lihop/godot-xterm.git
synced 2024-11-22 01:30:25 +01:00
Fallback to Regular Terminal font before using default
This commit is contained in:
parent
f555831915
commit
1083c13276
1 changed files with 2 additions and 0 deletions
|
@ -143,6 +143,8 @@ func _update_theme():
|
||||||
var f: Font
|
var f: Font
|
||||||
if has_font(font, "Terminal"):
|
if has_font(font, "Terminal"):
|
||||||
f = get_font(font, "Terminal")
|
f = get_font(font, "Terminal")
|
||||||
|
elif has_font("Regular", "Terminal"):
|
||||||
|
f = get_font("Regular", "Terminal")
|
||||||
else:
|
else:
|
||||||
if _default_theme.has_font(font, "Terminal"):
|
if _default_theme.has_font(font, "Terminal"):
|
||||||
f = _default_theme.get_font(font, "Terminal")
|
f = _default_theme.get_font(font, "Terminal")
|
||||||
|
|
Loading…
Reference in a new issue