Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion fontpreview
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ main(){
while true; do
# List out all the fonts which imagemagick is able to find, extract
# the font names and then pass them to fzf
font=$(magick -list font | awk -F: '/^[ ]*Font: /{print substr($NF,2)}' | fzf --prompt="$SEARCH_PROMPT")
font=$(magick -list font | awk -F: '/^[ ]*Font: /{print substr($NF,2)}' | sed 's/\\/\\\\/g' | fzf --prompt="$SEARCH_PROMPT")

# Exit if nothing is returned by fzf, which also means that the user
# has pressed [ESCAPE]
Expand Down