Skip to content

Commit

Permalink
[font] __hash__ add filename and font_index
Browse files Browse the repository at this point in the history
  • Loading branch information
moi15moi committed Mar 27, 2023
1 parent d4acd6b commit 9b78f9b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions font_collector/font.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,8 @@ def __eq__(self, other: "Font"):
def __hash__(self):
return hash(
(
self.filename,
self.font_index,
tuple(self.family_names),
self.italic,
self.weight,
Expand Down

0 comments on commit 9b78f9b

Please sign in to comment.