From 1083c1327677f2d18154a848f3008ad91c0e1ef9 Mon Sep 17 00:00:00 2001 From: Leroy Hopson Date: Sat, 24 Jul 2021 17:37:04 +0700 Subject: [PATCH] Fallback to Regular Terminal font before using default --- addons/godot_xterm/nodes/terminal/terminal.gd | 2 ++ 1 file changed, 2 insertions(+) diff --git a/addons/godot_xterm/nodes/terminal/terminal.gd b/addons/godot_xterm/nodes/terminal/terminal.gd index f42d9c1..80aa56b 100644 --- a/addons/godot_xterm/nodes/terminal/terminal.gd +++ b/addons/godot_xterm/nodes/terminal/terminal.gd @@ -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")