Bashrc.wiki: removed code from fontfind section. Just read the source

This commit is contained in:
David Thurstenson 2021-06-05 18:29:58 -05:00
parent 6eb0f3d487
commit b4a0f7bf80
1 changed files with 1 additions and 11 deletions

View File

@ -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.
----