Android-Umsetzung der Homepage
This commit is contained in:
22
android-app/scripts/download-fonts.sh
Executable file
22
android-app/scripts/download-fonts.sh
Executable file
@@ -0,0 +1,22 @@
|
||||
#!/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."
|
||||
Reference in New Issue
Block a user