From 9f44b2a64ab233209eb08750697d7d0230c8793b Mon Sep 17 00:00:00 2001 From: vitrinekast Date: Tue, 26 Mar 2024 12:04:50 +0100 Subject: [PATCH] more tries with fonts --- script.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/script.py b/script.py index 9a8a393..bf404ff 100644 --- a/script.py +++ b/script.py @@ -105,8 +105,8 @@ with open("/home/xpub/www/html/tl-dr/book.html", "w") as f: "-c", "print.css", "--metadata", "title="+log_file_name, "--epub-cover-image=cover.jpg" , - "--epub-embed-font='/home/xpub/www/html/tl-dr/fonts/Cascadia/ttf/CascadiaCode-*.ttf'" - "--epub-embed-font='/home/xpub/www/html/tl-dr/fonts/Ductus/Ductus*.woff'"], capture_output=True) + "--epub-embed-font='/home/xpub/www/html/tl-dr/fonts/Cascadia/ttf/CascadiaCode-Light.ttf'" + "--epub-embed-font='/home/xpub/www/html/tl-dr/fonts/Ductus/DuctusRegular.woff'"], capture_output=True) print("just generated a new book, also put it in the backlog of logs") subprocess.run(["cp", "/home/xpub/www/html/tl-dr/logged_book.epub", "/home/xpub/www/html/tl-dr/log-books/log_" + now.strftime("%Y-%m-%d_%H%M%S") + ".epub"], capture_output=True) create_all_logs_file();