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:
Leroy Hopson 2021-07-21 21:14:50 +07:00
parent 1d86bd6ec6
commit 568a9835c6
No known key found for this signature in database
GPG key ID: D2747312A6DB51AA

View file

@ -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("");
}