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
|
|
@ -53,7 +53,9 @@ PREP = VAULT / "7-Prep" / "prep_2026-11-20"
|
|||
QUELLE = PREP / "SL Schirm" / "SL-Schirm Inhalt.md"
|
||||
ZIEL = PREP / "SL Schirm" / "SL-Schirm (A5 quer).pdf"
|
||||
|
||||
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")))
|
||||
pdfmetrics.registerFont(TTFont("Sans", str(FONT_DIR / "DejaVuSans.ttf")))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue