Paper2Poster / postBuild
Siyuan Hu
build(space): install fonts-raleway and fonts-lato in postBuild to satisfy fontspec without modifying template
bdfd2cb
raw
history blame
530 Bytes
#!/usr/bin/env bash
set -euo pipefail
echo "[postBuild] Installing system fonts (Raleway, Lato) for fontspec"
if command -v apt-get >/dev/null 2>&1; then
apt-get update && apt-get install -y fonts-raleway fonts-lato fonts-dejavu-core fonts-dejavu-extra || true
fc-cache -f -v || true
else
echo "[postBuild] apt-get not available; skipping font install"
fi
echo "[postBuild] Installing Tectonic"
bash install_tectonic.sh || echo "[postBuild] Tectonic install script returned non-zero; continuing."
echo "[postBuild] Done"