asciinema-server icon indicating copy to clipboard operation
asciinema-server copied to clipboard

[Feature Request] Add Support for Nerd Fonts

Open YonatanAhituv opened this issue 7 years ago • 8 comments

I personally use a Nerd Font (Meslo Nerd Font Complete), which includes a ton of icons from Font Awesome and Powerline. However, when recording to Asciinema, most of the icons don't appear. Is it possible for Nerd Font Support?

YonatanAhituv avatar Feb 05 '18 19:02 YonatanAhituv

+1 on that

vakaobr avatar Jun 29 '18 13:06 vakaobr

+1 on that

vjunior1981 avatar Oct 16 '18 04:10 vjunior1981

👍 Same here, it would be great!

LoudSoftware avatar Mar 06 '19 20:03 LoudSoftware

🙏 Please, it would be awesome!

MatiMenich avatar Jun 27 '19 18:06 MatiMenich

Add Symbols Nerd Font this would help a lot for those who use Glyph from Nerd Font. :pray:

williamcanin avatar Mar 09 '20 14:03 williamcanin

It's 2020! I support this request. NerdFonts would be awesome!

gabrielmathias avatar Sep 19 '20 01:09 gabrielmathias

+1, it really sucks when icons don't display and it can screw the whole recording quality

eug-vs avatar Apr 28 '21 16:04 eug-vs

Any update on this?

tddschn avatar Jun 19 '22 04:06 tddschn

+1

jay-babu avatar Nov 01 '22 03:11 jay-babu

+1

trilin6 avatar Jan 12 '23 17:01 trilin6

It's 2023 now and Nerd Fonts are quite popular. Hopefully, you'll include support for it. :)

ranelpadon avatar Feb 15 '23 23:02 ranelpadon

I've implemented support for Nerd Fonts (opt-in, for each uploaded recording) in #412. It brings Fira Code and JetBrains Mono variants for start. I'd rather avoid including every single Nerd Font variant people use in the wild, so let's see first if we can get by with these 2. In the end people request Nerd Font support mostly for icons/symbols, not for specific font faces.

I wonder about the Symbols variant though - https://github.com/ryanoasis/nerd-fonts/tree/master/patched-fonts/NerdFontsSymbolsOnly/complete - is this just symbols, no glyphs? So like e.g. "Fira Code Nerd Font Complete" minus "Fira Code"?

ku1ik avatar Apr 03 '23 21:04 ku1ik

I checked Nerd Font Symbols Only variant. It's just symbols without glyphs indeed, however it seems it's not meant to be mixed with text in the same line as the size of symbols is wider than those in the patched fonts, causing misalignment of columns.

I thought that maybe this Symbols variant could be added as a fallback for default font (currently web safe, platform specific) but it doesn't look like it will work without causing more display issues.

ku1ik avatar Apr 04 '23 10:04 ku1ik

Nerd Font support is now live on asciinema.org

image

ku1ik avatar Apr 04 '23 11:04 ku1ik