Skip to content

Instantly share code, notes, and snippets.

@Dieterbe
Created December 19, 2021 19:00
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Dieterbe/91559a302745aa7a17f02d5ece23075d to your computer and use it in GitHub Desktop.
Save Dieterbe/91559a302745aa7a17f02d5ece23075d to your computer and use it in GitHub Desktop.
font-test.sh
#!/bin/bash
read -r -d '' text <<'EOF'
'" <> ?+| /=\ -_ ,.:;
ABCDEFGHIJKLMNOPQRSTUVWXYZ
abcdefghijklmnopqrstuvwxyz
! @ # $ % ^ & * ( ) { }
1 2 3 4 5 6 7 8 9 0 [ ]
EOF
echo -e "Regular:\n$text"
echo -e "\n\e[1mBold:\n$text\e[0m"
echo -e "\n\e[3mItalic:\n$text\e[0m"
echo -e "\n\e[3m\e[1mBold italic:\n$text\e[0m"
echo -e "\n\e[4mUnderline:\n$text\e[0m"
echo -e "\n\e[9mStrikethrough:\n$text\e[0m"
echo
echo "Icons:"
echo "FontAwesome MaterialDesign Devicons Octicons Powerline Seti-Ui Weather-icons"
echo " nf-fa-wifi 直nf-mdi-wifi  nf-dev-gulp  nf-oct-x  nf-ple-flame_thick  nf-seti-xml  nf-weather-sleet"
echo " nf-fa-arrow_up  nf-mdi-battery  nv-def-hackernews  nf-oct-star  nf-ple-honeycomb  nf-seti-folder  nf-weather-meteor"
echo " nf-fa-battery  nf-mdi-apple  nf-dev-github  nf-oct-key  nf-ple-left_half_circle_thick  nf-seti-python  nf-weather-alien"
echo
echo "Icon size comparison examples"
echo "see https://github.com/ryanoasis/nerd-fonts/issues/127"
echo -e "Small?:\uf300\uf460\ue70a\ue258"
echo -e "So-so?:\uf000\uf072"
echo -e "Normal:\ue285\uf245"
echo
echo "Emoji (not part of nerdfonts):"
echo "Smileys/people 😀 U+1f600 Grinning face 🙈 U+1F648 See-no-evil Monkey"
echo "Animals/Nature 🐾 U+1F43E Paw Prints 🌲 U+1F332 Evergreen Tree"
echo "Food/Drink 🌭 U+1F32D Hot Dog 🥂 U+1F942 Clinking Glasses"
echo "Activities 🎴 U+1F3B4 Flower Playing Cards 🥌 U+1F94C <no description>"
echo "Travel/Places 🔥 U+1F525 Fire 🌄 U+1F304 Sunrise Over Mountains"
echo "Objects 🎤 U+1F3A4 Microphone 🥁 U+1F941 Drum With Drumsticks"
echo "Symbols 🆓 U+1F193 Squared Free 🛐 U+1F6D0 Place Of Worship "
echo "Flags 🎌 U+1F38C Crossed Flags 🏴 U+1F3F4 Waving Black Flag"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment