Open qgrp-m-kondratenko opened 6 months ago
I see that the branch icon (between "on" and "main") is rendered correctly, so that means the Nerd Font is loaded and used fine.
The package and duck icons are emojis. agg doesn't support color emojis, but you can have monochrome emojis rendered with Noto Emoji font as explained here.
So the most of this is expected and working as intended. The only thing which I'm not sure about is the missing up arrow after the $ sign... It's not an emoji, so should have rendered with FiraCode Nerd Font. Can you try with another Nerd Font, e.g. JetBrains Mono?
@ku1ik Changing the font to "JetBrainsMono NF" produced the exact same result. However changing the renderer to "--renderer resvg" more or less fixed the issue for both fonts. The icons are displayed, just not the way they are displayed in the terminal.
agg -vvv --font-family 'FiraCode Nerd Font' --renderer resvg test.cast out.gif
[INFO agg] terminal size: 135x34
[INFO agg] selected font families: ["FiraCode Nerd Font"]
[INFO agg] selected theme: dracula
[INFO agg] gif dimensions: 1151x686
[WARN usvg_text_layout] Fallback from FiraCode Nerd Font to Symbola.
[WARN usvg_text_layout] Fallback from FiraCode Nerd Font to Symbola.
[WARN usvg_text_layout] Fallback from FiraCode Nerd Font to Symbola.
2 / 2 [===============================] 100.00 % 13.56/s [INFO agg] rendering finished in 0.14776781s
Describe the bug When rendering the cast containing icons from Nerd Fonts, the icons are not displayed in the resulting gif.
To Reproduce Steps to reproduce the behavior:
ascinema play /tmp/test.cast
. Nerd Font icons are displayed properly.agg --font-family 'FiraCode Nerd Font' /tmp/test.cast /tmp/out.gif
.firefox /tmp/out.gif
.Expected behavior Icons are supposed to be visible the same way as when using
ascinema play /tmp/test.cast
Versions:
Additional Context: