Skip to content

Commit f6f3c41

Browse files
authored
fix(googlefonts/axes_match): Do not error if new font includes new styles (#763)
1 parent 8576a67 commit f6f3c41

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

profile-googlefonts/src/checks/googlefonts/axes_match.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,11 @@ fn axes_match(c: &TestableCollection, context: &Context) -> CheckFnResult {
5858
let remote_style = remote_styles
5959
.iter()
6060
.flat_map(|s| TTF.from_testable(s))
61-
.find(|remote_f| remote_f.best_subfamilyname() == our_subfamily_name)
62-
.ok_or(FontspectorError::General(format!(
63-
"No matching remote style for {}",
64-
t.basename().unwrap_or("Regular".to_string())
65-
)))?;
61+
.find(|remote_f| remote_f.best_subfamilyname() == our_subfamily_name);
62+
let Some(remote_style) = remote_style else {
63+
// New style not present in the remote version; that's fine.
64+
continue;
65+
};
6666
let remote_axes = remote_style
6767
.font()
6868
.axes()

0 commit comments

Comments
 (0)