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:
parent
2dd6295caf
commit
7ab88b6d73
6 changed files with 91 additions and 3 deletions
|
|
@ -35,7 +35,9 @@ VAULT = ROOT / "RPG"
|
|||
PREP = VAULT / "7-Prep" / "prep_2026-11-20"
|
||||
SRC_ARKAN = VAULT / "3-Welt" / "Geheimnisse" / "Es gibt kein unbegrenztes Zaubern.md"
|
||||
SRC_Klerus = VAULT / "5-Regeln" / "Hausregeln" / "Liturgien und Glaubensgemeinschaften.md"
|
||||
FONT_DIR = Path("/usr/share/fonts/truetype/dejavu")
|
||||
from fontpicker import font_dir # noqa: E402
|
||||
|
||||
FONT_DIR = font_dir()
|
||||
|
||||
pdfmetrics.registerFont(TTFont("Serif", str(FONT_DIR / "DejaVuSerif.ttf")))
|
||||
pdfmetrics.registerFont(TTFont("Serif-Bold", str(FONT_DIR / "DejaVuSerif-Bold.ttf")))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue