nerd-font-v3
I added Nerd font version 3.0.2 icons to my emoji file. There is a cheat sheet in the official website. But I couldn't find a link to download all of the icons in a file. I also need them to be formatted as my emoji file.
So i downloaded the CSS
file and use sed
to create a HTML
file to show all the icons the way which i had formatted my emoji list. Then I open that HTML
in my browser and print that to a PDF
. Finally I used pdftotext
to create a txt
file as I wanted.
curl -o nerd-font.css https://www.nerdfonts.com/assets/css/webfont.css # Download the CSS file
sed 's/}/&\n/g' nerd-font.css | sed -n 's/\.\(nf-.*\):before.*\\\(.*\)"}/<div><i class="nf \1"><\/i> \1; u\+\2<\/div>/p' | sed '1 i\<style>@import \"https:\/\/www.nerdfonts.com\/assets\/css\/webfont.css"<\/style>' > nerd-font.html # Create html file
firefox nerd-font.html # Use firefox to print them to a PDF file
pdftotext nerd-font.html.pdf
I run this script to choose an emoji on my system.
Take It Easy by Luke Bergs | https://soundcloud.com/bergscloud/ Music promoted by https://www.chosic.com/free-music/all/ Creative Commons - Attribution-ShareAlike 3.0 Unported https://creativecommons.org/licenses/by-sa/3.0/
10599051 Bytes