mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-10-03 16:51:29 +00:00
term_font: Fix st font2 issue. Closes #1446
This commit is contained in:
13
neofetch
13
neofetch
@@ -3409,15 +3409,16 @@ END
|
||||
# like a font definition. NOTE: There is a slight limitation in this approach.
|
||||
# Technically "Font Name" is a valid font. As it doesn't specify any font options
|
||||
# though it is hard to match it correctly amongst the rest of the noise.
|
||||
[[ -n "$binary" ]] && \
|
||||
term_font="$(strings "$binary" | grep -F -m 1 \
|
||||
-e "pixelsize=" \
|
||||
-e "size=" \
|
||||
-e "antialias=" \
|
||||
-e "autohint=")"
|
||||
[[ -n "$binary" ]] &&
|
||||
term_font=$(
|
||||
strings "$binary" |
|
||||
|
||||
grep -m 1 "*font[^2]"
|
||||
)
|
||||
fi
|
||||
|
||||
term_font="${term_font/xft:}"
|
||||
term_font="${term_font#*=}"
|
||||
term_font="${term_font/:*}"
|
||||
;;
|
||||
|
||||
|
Reference in New Issue
Block a user