#!/bin/bash
##########################################################
#                                                        #
#   This installer installs all fonts                    #
#                                                        #
#   DO NOT EDIT !!!                                      #
#                                                        #
##########################################################

fontdir="$HOME/.local/share/fonts"

if ! [ -d "$fontdir" ]; then
  mkdir -p "$fontdir"
fi

while read -r font
do
    cp -f "./$font" "$fontdir"
    chmod 644 "$fontdir/$font"
    echo -e "  $font\t\e[32minstalled\e[m"

done< <(ls *.ttf)
fc-cache -f
echo -e "\n  Font cache updated!\n"

