Skip to content

Instantly share code, notes, and snippets.

@akostadinov
Created May 19, 2021 21:10
Show Gist options
  • Save akostadinov/202550a1e2fd4ea8cf523d91b437fa09 to your computer and use it in GitHub Desktop.
Save akostadinov/202550a1e2fd4ea8cf523d91b437fa09 to your computer and use it in GitHub Desktop.
shows fonts containing character
#!/usr/bin/env bash
# example: ./font_find.sh 🎩︎
# credits: David Baynard, https://unix.stackexchange.com/a/393740/14907
param="$1"
char=${param:0:1}
printf '%x' \'"$char" | xargs -I{} fc-list ":charset={}"
@akostadinov
Copy link
Author

Thanks, can be useful to some people. For my use case I wanted to know all details, file paths, styles, etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment