From 568a9835c6f32bffffa6aeb0f26368e5353dfedc Mon Sep 17 00:00:00 2001 From: Leroy Hopson Date: Wed, 21 Jul 2021 21:14:50 +0700 Subject: [PATCH] Fallback to Regular Terminal font before default font Will fallback to using Regular Terminal font for Bold, Italic, and Bold Italic styles if they are not defined. Will only fallback to using the default theme font if even Regular is not defined. --- addons/godot_xterm/native/src/terminal.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/addons/godot_xterm/native/src/terminal.cpp b/addons/godot_xterm/native/src/terminal.cpp index db6ad3e..a9e9ab6 100644 --- a/addons/godot_xterm/native/src/terminal.cpp +++ b/addons/godot_xterm/native/src/terminal.cpp @@ -480,6 +480,8 @@ void Terminal::update_theme() { if (has_font(font_style, "Terminal")) { fontref = get_font(font_style, "Terminal"); + } else if (has_font("Regular", "Terminal")) { + fontref = get_font("Regular", "Terminal"); } else { fontref = get_font(""); }