t2sde icon indicating copy to clipboard operation
t2sde copied to clipboard

google fonts are missing

Open terefang opened this issue 1 year ago • 3 comments

just seen your rant on open source fonts

maybe i can donate some code for you to adapt.

#!/usr/bin/env bash

XDIR=$(cd $(dirname $0) && pwd)

URL="https://fonts.google.com/download?family="

LIST=$(curl https://fonts.google.com/metadata/fonts 2>/dev/null | jq -r '.familyMetadataList[].family' |tr ' ' '+')

for x in ${LIST}; do

    NAME=$(echo $x | tr '+' '-')

        mkdir -p ${XDIR}/_tmp
        wget -O ${XDIR}/_tmp/${NAME}.zip ${URL}$x

        rm -rf ${XDIR}/${NAME}
        mkdir -p ${XDIR}/${NAME}
        cd ${XDIR}/${NAME} && unzip -o -j ${XDIR}/_tmp/${NAME}.zip

        rm -rf ${XDIR}/_tmp
done

terefang avatar Jul 19 '23 19:07 terefang

Hey @terefang awesome, thank you! I will look into it as soon as possible

N0T4G avatar Feb 23 '24 10:02 N0T4G

i will make available bash based installers in a github repo under:

https://github.com/terefang/font-installer-scripts

maybe you want to package them instead ?

terefang avatar Apr 10 '24 16:04 terefang

the repo is ready

https://github.com/terefang/font-installer-scripts

terefang avatar Apr 11 '24 01:04 terefang