From 00203b07e8eb84849e414a7a0455a8b3e745ed04 Mon Sep 17 00:00:00 2001 From: worldmozara Date: Sat, 21 Sep 2024 16:50:34 +0800 Subject: [PATCH] fix: clear classical index when doing update --- fontra/fontdb.py | 1 + 1 file changed, 1 insertion(+) diff --git a/fontra/fontdb.py b/fontra/fontdb.py index 4da0166..5808daa 100644 --- a/fontra/fontdb.py +++ b/fontra/fontdb.py @@ -104,6 +104,7 @@ def _ft_open_face(fn: Path, index: int = 0) -> freetype.Face: def update_fontrefs_index() -> None: """Update font references index.""" indexed_fontrefs.clear() + indexed_classical_fontrefs.clear() indexed_langnames.clear() for fn in (*_indexed_fontfiles_system, *_indexed_fontfiles_custom): try: