store woff and woff2 fonts

This commit is contained in:
Ren Tatsumoto 2023-03-07 11:09:56 +03:00
parent 3781a02a55
commit 2b060a5c93

View file

@ -56,7 +56,7 @@ def select(items: list[str], msg: str = "Select item number: ") -> str | None:
def get_used_fonts(template_css: str): def get_used_fonts(template_css: str):
return re.findall(r"url\([\"'](\w+\.[ot]tf)[\"']\)", template_css, re.IGNORECASE) return re.findall(r"url\([\"'](\w+\.(?:[ot]tf|woff\d?))[\"']\)", template_css, re.IGNORECASE)
def init(): def init():