diff options
| author | Maxwell Beck <max@rastertail.net> | 2026-07-16 18:44:41 -0500 |
|---|---|---|
| committer | Maxwell Beck <max@rastertail.net> | 2026-07-16 18:44:41 -0500 |
| commit | 710f36df89d5639171b7b5dddc437090e1bc051b (patch) | |
| tree | 4f8842bb7b326c2a2f9cc3896a52ccd7ac180f88 /setup-hook.sh | |
| parent | 9c78ec8e532b69ee643f9b4346187a67a797990c (diff) | |
Modular boilerplate + MIT license
Diffstat (limited to 'setup-hook.sh')
| -rw-r--r-- | setup-hook.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/setup-hook.sh b/setup-hook.sh new file mode 100644 index 0000000..d413266 --- /dev/null +++ b/setup-hook.sh @@ -0,0 +1,13 @@ +addFonts() { + if [[ -v TYPST_FONT_PATHS ]]; then + export TYPST_FONT_PATHS="$1/share/fonts/:$TYPST_FONT_PATHS" + else + export TYPST_FONT_PATHS="$1/share/fonts/" + fi +} + +export TYPST_IGNORE_SYSTEM_FONTS=true +export TYPST_IGNORE_EMBEDDED_FONTS=true +export TYPST_PACKAGE_PATH=$1/typst/packages + +addEnvHooks "$targetOffset" addFonts |
