Bashrc.wiki: removed code from fontfind section. Just read the source
This commit is contained in:
parent
6eb0f3d487
commit
b4a0f7bf80
12
Bashrc.wiki
12
Bashrc.wiki
|
@ -129,17 +129,7 @@ I no longer use `countdown()` from `shot()` directly, but sometimes will in some
|
|||
|
||||
https://git.thurstylark.com/vcsh/bashrc.git/tree/.bashrc.d/fontfind.bash
|
||||
|
||||
Sometimes you just need to figure out what font provides a specific character. This function provides that solution:
|
||||
|
||||
{{{class="prettyprint"
|
||||
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 }'
|
||||
}
|
||||
}}}
|
||||
Sometimes you just need to figure out what font provides a specific character. This function provides that solution.
|
||||
|
||||
----
|
||||
|
||||
|
|
Loading…
Reference in New Issue