Skip to content

Commit

Permalink
list: should only look into target where we install fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
crpb committed Aug 10, 2023
1 parent edebac8 commit 5399001
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions fnt
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ case "$s" in
target="$HOME/.fonts/"
if [ 0 -eq "$(id -u)" ]; then
target="/usr/local/share/fonts/"
mkdir -p $target
fi
;;
FreeBSD)
Expand Down Expand Up @@ -109,7 +108,7 @@ case "$1" in
# echo Listing...
# macOS mainly comes with *.ttc (truetype font collections, that can not be processed by otfinfo)
#ls -1 /System/Library/Fonts/*.?tf /usr/share/fonts/*type/*/*.?tf $HOME/Library/Fonts/*.?tf $HOME/.fonts/*.?tf 2>/dev/null | while read f; do
find "${HOME}"/{Library,.fonts}/ /usr/local/share/fonts -iname '*.?tf' | while read -r f; do
find "$target" /usr/local/share/fonts -iname '*.?tf' | while read -r f; do
echo "$(basename "${f}") [ $(otfinfo -u "$f" 2>/dev/null | wc -l) ]"
done
# ls -1 "$HOME"/Library/Fonts/*.?tf "$HOME"/.fonts/*.?tf /usr/local/share/fonts/*.?tf 2>/dev/null | while read f; do
Expand Down

0 comments on commit 5399001

Please sign in to comment.