Skip to content

Commit db87619

Browse files
committed
add links_to_font_files
1 parent 8bb39bc commit db87619

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

rendercv_fonts/__init__.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,13 @@
1919
for font_famiy in available_font_families
2020
}
2121
paths_to_font_folders = [path for path in path_of.values()]
22+
paths_to_font_files = [
23+
font_file
24+
for font_folder in paths_to_font_folders
25+
for font_file in font_folder.rglob("*")
26+
if font_file.is_file() and font_file.suffix not in {"", ".txt"}
27+
]
28+
links_to_font_files = [
29+
f"https://raw.githubusercontent.com/rendercv/rendercv-fonts/main/rendercv_fonts/{font_path.relative_to(package_folder_path)}"
30+
for font_path in paths_to_font_files
31+
]

0 commit comments

Comments
 (0)