Add fontfind() for finding which font provides a certain glyph
This commit is contained in:
parent
8602033910
commit
42c1b93936
8
.bashrc
8
.bashrc
@ -163,3 +163,11 @@ shot() {
|
|||||||
|
|
||||||
maim ${opts[@]}; $pipe
|
maim ${opts[@]}; $pipe
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fontfind() {
|
||||||
|
if [[ -z $1 || ${#1} -gt 1 ]]; then
|
||||||
|
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 }'
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user