We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This SO answer has been pretty useful. Convert it to a script called fontcharlist installed via nix.
fontcharlist
#!/bin/bash - Usage() { echo "$0 FontFile"; exit 1; } SayError() { local error=$1; shift; echo "$0: $@"; exit "$error"; } [ "$#" -ne 1 ] && Usage width=70 fontfile="$1" [ -f "$fontfile" ] || SayError 4 'File not found' list=$(fc-query --format='%{charset}\n' "$fontfile") for range in $list do IFS=- read start end <<<"$range" if [ "$end" ] then start=$((16#$start)) end=$((16#$end)) for((i=start;i<=end;i++)); do printf -v char '\\U%x' "$i" printf '%b' "$char" done else printf '%b' "\\U$start" fi done | grep -oP '.{'"$width"'}'
The text was updated successfully, but these errors were encountered:
or maybe https://github.com/ryanoasis/nerd-fonts/blob/master/bin/scripts/test-fonts.sh
Sorry, something went wrong.
No branches or pull requests
This SO answer has been pretty useful. Convert it to a script called
fontcharlist
installed via nix.The text was updated successfully, but these errors were encountered: