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

This commit is contained in:
Wez Furlong committed 2020-02-14 12:35:42 -08:00
1 parent 0b3f61796a
commit ff210a1c8e
1 file changed
+1 -1
+1 -1
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 {