asciinema / agg

asciinema gif generator
Apache License 2.0
1.12k stars 38 forks source link

Default command errors with unhelpful error message: no faces matching font family #26

Closed paololazzari closed 1 year ago

paololazzari commented 1 year ago

In ubuntu WSL:

$ agg /tmp/tmpwgt1f50h-ascii.cast demo.gif
Error: no faces matching font family JetBrains Mono,Fira Code,SF Mono,Menlo,Consolas,DejaVu Sans Mono,Liberation Mono

the recording was created with the default asciinema rec command

Josh-zjx commented 1 year ago

I just encountered the exact same problem and solved it by installing any one of these fonts it mentioned. I am using manjaro on WSL2 so I just run sudo pacman -S ttf-jetbrains-mono There should be similar solutions in Ubuntu.

paololazzari commented 1 year ago

Thank you @Josh-zjx

This worked for me in ubuntu:

sudo apt-get install -y fonts-jetbrains-mono