mirror of
https://github.com/lihop/godot-xterm.git
synced 2024-11-22 01:30:25 +01:00
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.
This commit is contained in:
parent
1d86bd6ec6
commit
568a9835c6
1 changed files with 2 additions and 0 deletions
|
@ -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("");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue