asciinema / agg

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

agg failed on using default font or stuck when using custom font #54

Open cattokomo opened 10 months ago

cattokomo commented 10 months ago

Describe the bug agg failed on using default font or stuck when using custom font.

To Reproduce Steps to reproduce the behavior:

  1. agg demo.cast demo.gif or agg demo.cast demo.gif --font-family "Cascadia Mono"
  2. Return Error: no faces matching font families JetBrains Mono,Fira Code,SF Mono,Menlo,Consolas,DejaVu Sans Mono,Liberation Mono or stuck if font provided into --font-family is exist.

Expected behavior Convert asciicast file into a gif file.

Versions:

Additional context -

ku1ik commented 9 months ago

By stuck you mean it hangs, never finishes?

Can you show the output of the agg command with -vv option added for extra verbosity?

gnit24 commented 1 month ago

I was having similar issues in Termux. The fix for me was putting --font-dir=~/.termux Pointing to this font dir path found & used the fonts. Example: agg --font-dir=~/.termux demo.cast demo.gif