mirror of
https://codeberg.org/knightsub9/lxcafe.git
synced 2026-07-19 19:30:16 +02:00
do not expect Aptos font file but download it when needed (#8)
Reviewed-on: lxcafe/lxcafe#8
This commit is contained in:
@@ -114,24 +114,25 @@ echo " ## Microsoft Aptos Schriftarten installieren:"
|
||||
if question_answered_with_yes " ### Installiere Aptos Schriften? ###"; then
|
||||
echo
|
||||
echo "### Aptos Schriften ###"
|
||||
|
||||
|
||||
_aptos_zip="Microsoft Aptos Fonts.zip"
|
||||
if [ ! -f "$_aptos_zip" ]; then
|
||||
echo ""
|
||||
echo "$_aptos_zip nicht gefunden."
|
||||
echo "Bitte laden Sie die Datei von Microsoft herunter und legen Sie sie im selben Verzeichnis wie dieses Skript ab."
|
||||
else
|
||||
echo
|
||||
echo "Entpacke das Archiv..."
|
||||
unzip -o "$_aptos_zip"
|
||||
echo "Erstelle /usr/share/fonts/truetype/aptos/"
|
||||
sudo mkdir -p /usr/share/fonts/truetype/aptos
|
||||
echo "Installiere alle .ttf Schriften..."
|
||||
find . -name "*.ttf" -exec sudo install -m644 {} /usr/share/fonts/truetype/aptos/ \; 2>/dev/null || true
|
||||
echo "Aktualisiere den Font-Cache"
|
||||
fc-cache -f
|
||||
echo "Fertig! Aptos Schriftarten sind installiert."
|
||||
fi
|
||||
_aptos_url="https://download.microsoft.com/download/8/6/0/860a94fa-7feb-44ef-ac79-c072d9113d69/Microsoft%20Aptos%20Fonts.zip"
|
||||
|
||||
echo "Lade Aptos Schriften herunter..."
|
||||
wget "$_aptos_url" -O "$_aptos_zip"
|
||||
|
||||
echo "Entpacke das Archiv..."
|
||||
unzip -o "$_aptos_zip"
|
||||
echo "Erstelle /usr/share/fonts/truetype/aptos/"
|
||||
sudo mkdir -p /usr/share/fonts/truetype/aptos
|
||||
echo "Installiere alle .ttf Schriften..."
|
||||
find . -name "*.ttf" -exec sudo install -m644 {} /usr/share/fonts/truetype/aptos/ \; 2>/dev/null || true
|
||||
echo "Aktualisiere den Font-Cache"
|
||||
fc-cache -f
|
||||
echo "Fertig! Aptos Schriftarten sind installiert."
|
||||
|
||||
echo "Entferne temporäre Dateien..."
|
||||
rm -f "$_aptos_zip"
|
||||
fi
|
||||
|
||||
echo
|
||||
|
||||
Reference in New Issue
Block a user