From ff210a1c8eef869168561ddc122b53a4dbc2dd78 Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Fri, 14 Feb 2020 12:35:42 -0800 Subject: [PATCH] tweak font parser/locator to recognize Regular as a sub family --- src/font/parser.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/font/parser.rs b/src/font/parser.rs index bedad3089..2fa31e8ae 100644 --- a/src/font/parser.rs +++ b/src/font/parser.rs @@ -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 {