summaryrefslogtreecommitdiff
path: root/fontd
diff options
context:
space:
mode:
Diffstat (limited to 'fontd')
-rwxr-xr-xfontd5
1 files changed, 4 insertions, 1 deletions
diff --git a/fontd b/fontd
index d6754d0..aecd636 100755
--- a/fontd
+++ b/fontd
@@ -4,9 +4,12 @@
# display CHAR if found in any bdf fonts in DIR/
# NOTE: CHAR must be in decimal encoding point format of bdf
+#expands ~ and *, it's a bit unsafe
+eval fonts="$2/*bdf"
+
#gets font size, it can take multiple fonts as input so only get the first one
#and assume they're all the same size
-size=$(cat $2/*bdf | grep -m 1 PIXEL_SIZE | awk '{print $2}')
+size=$(cat $fonts | grep -m 1 PIXEL_SIZE | awk '{print $2}')
#get bdf bitmap info from bdf
#fflag ensures only one result even with multiple bdfs, cflag finds the char,