|
|
|
@ -3409,15 +3409,16 @@ END |
|
|
|
# like a font definition. NOTE: There is a slight limitation in this approach. |
|
|
|
# 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 |
|
|
|
# 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. |
|
|
|
# though it is hard to match it correctly amongst the rest of the noise. |
|
|
|
[[ -n "$binary" ]] && \ |
|
|
|
[[ -n "$binary" ]] && |
|
|
|
term_font="$(strings "$binary" | grep -F -m 1 \ |
|
|
|
term_font=$( |
|
|
|
-e "pixelsize=" \ |
|
|
|
strings "$binary" | |
|
|
|
-e "size=" \ |
|
|
|
|
|
|
|
-e "antialias=" \ |
|
|
|
grep -m 1 "*font[^2]" |
|
|
|
-e "autohint=")" |
|
|
|
) |
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
term_font="${term_font/xft:}" |
|
|
|
term_font="${term_font/xft:}" |
|
|
|
|
|
|
|
term_font="${term_font#*=}" |
|
|
|
term_font="${term_font/:*}" |
|
|
|
term_font="${term_font/:*}" |
|
|
|
;; |
|
|
|
;; |
|
|
|
|
|
|
|
|
|
|
|
|