Skip to content

Commit

Permalink
Clear weight, style and stretch when parsing fontconfig cache
Browse files Browse the repository at this point in the history
  • Loading branch information
fredizzimo committed Aug 13, 2024
1 parent 2ec4147 commit cc98b31
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fontique/src/backend/fontconfig/cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ impl CachedFont {
self.path.clear();
self.index = 0;
self.coverage.clear();
self.weight = Weight::default();
self.style = Style::default();
self.stretch = Stretch::default();
}
}

Expand Down

0 comments on commit cc98b31

Please sign in to comment.