#!/bin/bash
set -e

echo "Downloading Geist font..."
curl -L "https://github.com/vercel/geist-font/releases/latest/download/Geist.zip" -o Geist.zip
unzip -q Geist.zip
cp Geist/static/Geist-Regular.otf ./
cp Geist/static/Geist-Medium.otf ./
cp Geist/static/Geist-SemiBold.otf ./
rm -rf Geist Geist.zip

echo "Downloading Monaspace..."
curl -L "https://github.com/githubnext/monaspace/releases/latest/download/monaspace-v1.101.zip" -o monaspace.zip
unzip -q monaspace.zip
cp monaspace-v1.101/fonts/otf/MonaspaceNeon-Regular.otf ./
cp monaspace-v1.101/fonts/otf/MonaspaceNeon-SemiBold.otf ./
rm -rf monaspace-v1.101 monaspace.zip

echo "Fonts downloaded successfully!"
ls -lh *.otf
