From 9b78f9b357390af69ee7d3c6477765a9d2beb091 Mon Sep 17 00:00:00 2001 From: moi15moi Date: Sun, 26 Mar 2023 20:26:11 -0400 Subject: [PATCH] [font] __hash__ add filename and font_index --- font_collector/font.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/font_collector/font.py b/font_collector/font.py index d24cb48..63d2859 100644 --- a/font_collector/font.py +++ b/font_collector/font.py @@ -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,