Android-Umsetzung der Homepage
This commit is contained in:
37
android-app/app/src/main/res/font_README.md
Normal file
37
android-app/app/src/main/res/font_README.md
Normal file
@@ -0,0 +1,37 @@
|
||||
Fonts für die Android-App
|
||||
|
||||
Dieses Verzeichnis soll die gebündelten TTF-Dateien enthalten, damit die App die gleichen Schriften wie die Web-UI verwendet.
|
||||
|
||||
Automatischer Download (empfohlen):
|
||||
|
||||
1. Ausführbar machen:
|
||||
|
||||
```bash
|
||||
chmod +x android-app/scripts/download-fonts.sh
|
||||
```
|
||||
|
||||
2. Script ausführen:
|
||||
|
||||
```bash
|
||||
./android-app/scripts/download-fonts.sh
|
||||
```
|
||||
|
||||
Das Script lädt die variable Font-Dateien `Inter[opsz,wght].ttf` und `Montserrat[wght].ttf` in `app/src/main/res/font/` und benennt sie in `inter_variable.ttf` und `montserrat_variable.ttf`.
|
||||
|
||||
Manuelle Alternative:
|
||||
- Lade `Inter` und `Montserrat` vom Google Fonts Repo herunter und lege die TTFs in dieses Verzeichnis.
|
||||
- Benenne die Dateien wie oben.
|
||||
|
||||
Compose-Nutzung (Beispiel in Kotlin):
|
||||
|
||||
```kotlin
|
||||
val Inter = FontFamily(
|
||||
Font(R.font.inter_variable)
|
||||
)
|
||||
|
||||
val Montserrat = FontFamily(
|
||||
Font(R.font.montserrat_variable)
|
||||
)
|
||||
```
|
||||
|
||||
Hinweis: Das Herunterladen der Fonts erfolgt von GitHub (Raw URLs). Prüfe die Lizenzen (Google Fonts sind in der Regel OFL-lizenziert).
|
||||
Reference in New Issue
Block a user