diff --git a/plugins/preview-tui-ext b/plugins/preview-tui-ext index 723fe7af..95ec74db 100755 --- a/plugins/preview-tui-ext +++ b/plugins/preview-tui-ext @@ -180,7 +180,7 @@ preview_file () { generate_preview "$cols" "$lines" "$1" "pdf" elif [ "$ext" = "epub" ] && exists gnome-epub-thumbnailer; then generate_preview "$cols" "$lines" "$1" "epub" - elif [ "${mimetype%%/*}" = "font" ] && exists fontpreview; then + elif [ "${mimetype#*opentype}" != "$mimetype" ] || [ "${mimetype#*font}" != "$mimetype" ] && exists fontpreview; then generate_preview "$cols" "$lines" "$1" "font" elif [ "${mimetype#*office}" != "$mimetype" ] || [ "${mimetype#*document}" != "$mimetype" ] && exists libreoffice; then generate_preview "$cols" "$lines" "$1" "office"