Skip to content

Commit

Permalink
feat(dx): add monaspace font (#1475)
Browse files Browse the repository at this point in the history
  • Loading branch information
p5 authored Jul 1, 2024
1 parent 6e60b82 commit de9e5e3
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions build_files/dx/build-dx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ sysctl -p
. /tmp/build/packages-dx.sh
. /tmp/build/image-info.sh
. /tmp/build/fetch-install-dx.sh
. /tmp/build/fonts-dx.sh
. /tmp/build/workarounds.sh
. /tmp/build/systemd-dx.sh
. /tmp/build/branding-dx.sh
Expand Down
14 changes: 14 additions & 0 deletions build_files/dx/fonts-dx.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/usr/bin/bash

set -ouex pipefail

# GitHub Monaspace
DOWNLOAD_URL=$(curl https://api.github.com/repos/githubnext/monaspace/releases/latest | jq -r '.assets[] | select(.name| test(".*.zip$")).browser_download_url')
curl -Lo /tmp/monaspace-font.zip "$DOWNLOAD_URL"

unzip -qo /tmp/monaspace-font.zip -d /tmp/monaspace-font
mkdir -p /usr/share/fonts/monaspace
mv /tmp/monaspace-font/monaspace-v*/fonts/variable/* /usr/share/fonts/monaspace/
rm -rf /tmp/monaspace-font*

fc-cache -f /usr/share/fonts/monaspace

0 comments on commit de9e5e3

Please sign in to comment.