tools: Schriften plattformunabhängig finden, Setup für macOS dokumentieren

- tools/fontpicker.py sucht DejaVu über WESTREICHE_FONT_DIR, Linux-Pfade und
  ~/Library/Fonts statt festem /usr/share/fonts/truetype/dejavu
- PDF-Skripte (Almanach, Liturgie, SL-Tabellen, SL-Schirm) nutzen den Finder
- tools/requirements.txt (reportlab, markdown, pillow) + Setup-Abschnitt in
  AGENTS.md inkl. ghostscript, pandoc und font-dejavu für macOS
This commit is contained in:
torsten 2026-11-20 17:30:35 +01:00
parent 2dd6295caf
commit 7ab88b6d73
6 changed files with 91 additions and 3 deletions

View file

@ -41,7 +41,9 @@ VAULT = ROOT / "RPG"
PREP = VAULT / "7-Prep" / "prep_2026-11-20"
SPELL_DIR = VAULT / "5-Regeln" / "Zauber" / "Arkan"
TITLE_IMAGE = PREP / "summarium_titelband.png"
FONT_DIR = Path("/usr/share/fonts/truetype/dejavu")
from fontpicker import font_dir # noqa: E402
FONT_DIR = font_dir()
# ---------------------------------------------------------------- Schriften
pdfmetrics.registerFont(TTFont("Serif", str(FONT_DIR / "DejaVuSerif.ttf")))