From db8761994e6f4afdbe5528e010cdd827ebccc9c4 Mon Sep 17 00:00:00 2001 From: Sina Atalay Date: Sat, 25 Jan 2025 17:48:44 -0500 Subject: [PATCH] add `links_to_font_files` --- rendercv_fonts/__init__.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/rendercv_fonts/__init__.py b/rendercv_fonts/__init__.py index 5b26afa..2133b22 100644 --- a/rendercv_fonts/__init__.py +++ b/rendercv_fonts/__init__.py @@ -19,3 +19,13 @@ for font_famiy in available_font_families } paths_to_font_folders = [path for path in path_of.values()] +paths_to_font_files = [ + font_file + for font_folder in paths_to_font_folders + for font_file in font_folder.rglob("*") + if font_file.is_file() and font_file.suffix not in {"", ".txt"} +] +links_to_font_files = [ + f"https://raw.githubusercontent.com/rendercv/rendercv-fonts/main/rendercv_fonts/{font_path.relative_to(package_folder_path)}" + for font_path in paths_to_font_files +]