2019-05-16 04:17:05 +00:00
|
|
|
fontfind() {
|
|
|
|
if [[ -z $1 || ${#1} -gt 1 ]]; then
|
2019-05-16 03:45:06 +00:00
|
|
|
printf "E: only one character accepted"
|
|
|
|
fi
|
|
|
|
local glyph=$1
|
|
|
|
FC_DEBUG=4 pango-view -qt "$glyph" 2>&1 | awk -F \" '/family: / { m = $2 } END { print m }'
|
|
|
|
}
|