From 98cd943e493e23932e5ddf031dd004306c7314b0 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Fri, 22 Nov 2024 14:55:17 +0100 Subject: use fonts from asset repo --- book/GNUmakefile | 6 +++--- book/assets | 2 +- 2 files changed, 4 insertions(+), 4 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 $@ diff --git a/book/assets b/book/assets index 830ea1c0..35350323 160000 --- a/book/assets +++ b/book/assets @@ -1 +1 @@ -Subproject commit 830ea1c06a116e999f5a00a84574715aa5cd1bfc +Subproject commit 353503235dbd6d4af7689cec3d81c38bf4f63c60 -- cgit v1.2.3-70-g09d2