#!/usr/bin/env bash # AM4LGAM8: a fonte joystix.otf (Typodermic, licenca propria que nao autoriza redistribuir o arquivo) sai; entra a # Press Start 2P (SIL Open Font License 1.1, do repositorio google/fonts num commit fixo). O font.patch troca o nome e diminui os tamanhos (a Press Start 2P e mais larga e alta que a Joystix). set -euo pipefail tree="$1" cache="$2" GF=45e3d5269e4a17d823f6d84470bc084dc5ae46f6 get() { # url arquivo sha256 [ -f "$cache/$2" ] || { curl -fsSL --retry 4 "$1" -o "$cache/$2.partial" && mv "$cache/$2.partial" "$cache/$2"; } echo "$3 $cache/$2" | shasum -a 256 -c - >/dev/null } get "https://raw.githubusercontent.com/google/fonts/$GF/ofl/pressstart2p/PressStart2P-Regular.ttf" gf-ofl_pressstart2p_PressStart2P-Regular.ttf 034c77f1f05ec89421e4a63f0e3a4ca1ecf852cc6d2bf611f126f275728e017d get "https://raw.githubusercontent.com/google/fonts/$GF/ofl/pressstart2p/OFL.txt" gf-ofl_pressstart2p_OFL.txt 705960c3281a5765ecc0b59bd4ed7ca59eed165748076bc2fc3e8fdbfeb944b0 rm -f "$tree/assets/joystix.otf" "$tree/assets/LICENSE" cp "$cache/gf-ofl_pressstart2p_PressStart2P-Regular.ttf" "$tree/assets/PressStart2P-Regular.ttf" cp "$cache/gf-ofl_pressstart2p_OFL.txt" "$tree/assets/OFL.txt"