1
1
mirror of https://github.com/wez/wezterm.git synced 2025-01-05 12:15:23 +03:00

tweak font parser/locator to recognize Regular as a sub family

This commit is contained in:
Wez Furlong 2020-02-14 12:35:42 -08:00
parent 0b3f61796a
commit ff210a1c8e

View File

@ -457,7 +457,7 @@ fn font_info_matches(attr: &FontAttributes, names: &Names) -> bool {
match names.sub_family.as_ref().map(String::as_str) {
Some("Italic") if attr.italic => true,
Some("Bold") if attr.bold => true,
None => true,
Some("Regular") | None => true,
_ => false,
}
} else {