tweak font parser/locator to recognize Regular as a sub family
This commit is contained in:
1 parent
0b3f61796a
commit
ff210a1c8e
1 file changed
+1
-1
+1
-1
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user