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:
parent
0b3f61796a
commit
ff210a1c8e
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user