-
-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Doesn't render unicode characters such as βπ€β (U+1F916) and ββ Έβ ? #28
Comments
I have tried I think the problem is with the renderer. I don't know maybe there is a better renderer? |
Can you provide example .cast file so we can try to reproduce the problem? Also, what OS? |
maybe can try add option |
I just hit this too on macOS 13.2.1 on a 2022 M2 MacBook Pro: I'm happy to share the cast file but GitHub doesn't allow the ".cast" file type as an attachment; how would you like to receive it? Alternately, if it's easier, my terminal app is trivial to reproduce, just clone and run |
I just discovered the
|
I've just released 1.4.0 with much improved font loading and rendering behaviour. Please give it a try. Also see new Fonts section in README. |
Thanks for the quick update! Unfortunately I'm not seeing any improvements for the various emoji (U+1F6..). With agg built from the 1.4.0 tag:
Here's a screen grab from my terminal as the demo is running: Here's the cast file I'm using. Perhaps it has something to do with my font? I'm using a nerd-patched Meno: https://github.com/ryanoasis/nerd-fonts/blob/master/patched-fonts/Meslo/M/Regular/complete/Meslo%20LG%20M%20Regular%20Nerd%20Font%20Complete.ttf |
@charlesnicholson See Fonts section in README for info on emoji support. Without Noto Emoji font on your system you won't get any emoji rendered. |
Ah, thanks, gotcha. Should I open another ticket for supporting colored emoji with the user's font? |
As for color emojis - agg uses fontdue library in its default renderer backend and this lib doesn't yet support color fonts. See mooman219/fontdue#47 . Once fontdue adds support for it, e.g. for Noto Color Emoji as mentioned in that issue, we'll have it in agg. We also have this alternative SVG based renderer - resvg - but similarly, it can't deal with color emoji properly yet. See linebender/resvg#485 (comment) In other words, you could open a ticket but I don't plan to look into that until either of the libs gets better support for it, or until we write another renderer using a different text rendering library. So it's not really going to happen soon. |
I see, thanks for the response! I've been using https://github.com/icholy/ttygif and it works with whatever the user's font + setup are; I was hoping to move to asciinema but I guess it's not quite there yet :) |
I just released agg 1.5.0 with improved support for emoji, including rendering color ones π https://github.com/asciinema/agg/releases/tag/v1.5.0 If you have a chance to give it a shot then let me know how it performs now. Thanks! |
I have a cli application with spinner and I also use some unicode characters such as βπ€β (U+1F916) and ββ Έβ.
They show up as outline rectangles instead. I have also tried to use Nerd Font by specify custom
--font-dir
and--font-family
The text was updated successfully, but these errors were encountered: