#!/bin/bash
# Bash script to download Urbanist font files from Google Fonts
# Run this script from the mobile directory: ./scripts/download_fonts.sh

FONTS_DIR="../fonts"
FONTS_URL="https://github.com/google/fonts/raw/main/ofl/urbanist"

# Create fonts directory if it doesn't exist
mkdir -p "$FONTS_DIR"

echo "Downloading Urbanist fonts..."

# Font files to download
declare -a FONTS=(
    "Urbanist-Regular.ttf"
    "Urbanist-Medium.ttf"
    "Urbanist-SemiBold.ttf"
    "Urbanist-Bold.ttf"
)

for font in "${FONTS[@]}"; do
    echo "Downloading $font..."
    curl -L "$FONTS_URL/$font" -o "$FONTS_DIR/$font"
    if [ $? -eq 0 ]; then
        echo "  ✓ Downloaded $font"
    else
        echo "  ✗ Failed to download $font"
        echo "  You can manually download from: https://fonts.google.com/specimen/Urbanist"
    fi
done

echo ""
echo "Font download complete!"
echo "Fonts saved to: $FONTS_DIR"




