Skip to content

Instantly share code, notes, and snippets.

@aminophen
Created November 11, 2017 02:02
Show Gist options
  • Save aminophen/d3e4a3c90950cfecf1d529125e2ea654 to your computer and use it in GitHub Desktop.
Save aminophen/d3e4a3c90950cfecf1d529125e2ea654 to your computer and use it in GitHub Desktop.
#!/bin/sh
filename=$1
if [ -z "$filename" ]; then
echo "Needs one filename argument."
exit 1
fi
cat ${filename} | while read l; do
echo "\nFile: $l"
fc-query --format="Name: %{postscriptname}\nFormat: %{fontformat}\nLang: %{lang}\n" "$l"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment