aboutsummaryrefslogtreecommitdiff
path: root/book/GNUmakefile
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-11-22 14:55:17 +0100
committermetamuffin <metamuffin@disroot.org>2024-11-22 14:55:17 +0100
commit98cd943e493e23932e5ddf031dd004306c7314b0 (patch)
treebab06bb2f963c3749330434a529a708425ac4905 /book/GNUmakefile
parentcef88ee459fd2b0e22a2c997f858791fe0d5182e (diff)
downloadhurrycurry-98cd943e493e23932e5ddf031dd004306c7314b0.tar
hurrycurry-98cd943e493e23932e5ddf031dd004306c7314b0.tar.bz2
hurrycurry-98cd943e493e23932e5ddf031dd004306c7314b0.tar.zst
use fonts from asset repo
Diffstat (limited to 'book/GNUmakefile')
-rw-r--r--book/GNUmakefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/book/GNUmakefile b/book/GNUmakefile
index 4467822b..c80844ee 100644
--- a/book/GNUmakefile
+++ b/book/GNUmakefile
@@ -29,12 +29,12 @@ book.json: book.js
$(wordlist 2,99,$(png_pages)): $(word 1,$(png_pages))
out/book_01.%.png: book.typ book.json locale/%.ini out
- typst compile --input lang=$(subst out/,,$(*)) $< out/book_\{n\}.$(subst out/,,$(*)).png
+ typst compile --font-path assets/fonts --input lang=$(subst out/,,$(*)) $< out/book_\{n\}.$(subst out/,,$(*)).png
$(wordlist 2,99,$(svg_pages)): $(word 1,$(svg_pages))
out/book_01.%.svg: book.typ book.json locale/%.ini out
- typst compile --input lang=$(subst out/,,$(*)) $< out/book_\{n\}.$(subst out/,,$(*)).svg
+ typst compile --font-path assets/fonts --input lang=$(subst out/,,$(*)) $< out/book_\{n\}.$(subst out/,,$(*)).svg
out/book.%.pdf: book.typ book.json locale/%.ini out
- typst compile --input lang=$(subst out/,,$(*)) $< $@
+ typst compile --font-path assets/fonts --input lang=$(subst out/,,$(*)) $< $@
out/%.webp: out/%.png
ffmpeg -i $< -y $@