Files
harheimertc/android-app/scripts/download-fonts.sh
Torsten Schulz (local) 7e0c92368e
Some checks failed
Code Analysis and Production Deploy / analyze (push) Failing after 2m22s
Code Analysis and Production Deploy / deploy-production (push) Has been skipped
Code Analysis and Production Deploy / deploy-test (push) Has been skipped
Android-Umsetzung der Homepage
2026-05-27 17:54:24 +02:00

22 lines
946 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
# Lädt Inter Regular und Montserrat SemiBold aus dem Google Fonts GitHub-Repo
# Ziel: android-app/app/src/main/res/font/
OUT_DIR="$(dirname "$0")/../app/src/main/res/font"
mkdir -p "$OUT_DIR"
echo "Download fonts into $OUT_DIR"
# URLs (raw GitHub content)
INTER_URL="https://raw.githubusercontent.com/google/fonts/main/ofl/inter/Inter-Regular.ttf"
MONTSERRAT_URL="https://raw.githubusercontent.com/google/fonts/main/ofl/montserrat/Montserrat-SemiBold.ttf"
curl -fL "$INTER_URL" -o "$OUT_DIR/inter_regular.ttf" || { echo "Fehler: Inter konnte nicht heruntergeladen werden."; exit 1; }
curl -fL "$MONTSERRAT_URL" -o "$OUT_DIR/montserrat_semibold.ttf" || { echo "Fehler: Montserrat konnte nicht heruntergeladen werden."; exit 1; }
echo "Fonts heruntergeladen:"
ls -l "$OUT_DIR"/*.ttf
echo "Füge in Android Studio die Fonts als resource-Fonts hinzu oder benutze sie in Compose via R.font.inter_regular."