Skip to content

Commit

Permalink
Don't add lookup when there's no rules
Browse files Browse the repository at this point in the history
  • Loading branch information
simoncozens committed Jun 28, 2024
1 parent 434d5c1 commit 58e3cbe
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fontbe/src/features/marks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,9 @@ impl<'a> MarkLookupBuilder<'a> {
}
}
}
if affected_glyphs.is_empty() {
return Ok(vec![]);
}
for glyph_name in affected_glyphs {
let gid = self.glyph_order.glyph_id(glyph_name).unwrap();
let entry_anchor = entries
Expand Down

0 comments on commit 58e3cbe

Please sign in to comment.