Skip to content

Instantly share code, notes, and snippets.

@elijahmanor
Created March 19, 2023 19:28
Show Gist options
  • Save elijahmanor/c10e5787bf9ac6b8c276e47e6745826c to your computer and use it in GitHub Desktop.
Save elijahmanor/c10e5787bf9ac6b8c276e47e6745826c to your computer and use it in GitHub Desktop.
Font Smoke Test
#/bin/bash
echo "Normal"
echo "\033[1mBold\033[22m"
echo "\033[3mItalic\033[23m"
echo "\033[3;1mBold Italic\033[0m"
echo "\033[4mUnderline\033[24m"
echo "== === !== >= <= =>"
echo "契     勒 鈴 "
@msmafra
Copy link

msmafra commented Apr 4, 2024

#!/usr/bin/env bash

smoke_tests="Normal
\033[1mBold\033[22m
\033[3mItalic\033[23m
\033[3;1mBold Italic\033[0m
\033[4mUnderline\033[24m
== === !== >= <= =>
Nerdfont
         󰾆      󰢻   󱑥   󰒲   󰗼   
Fontawesome Free
                           

"


printf "%b" "${smoke_tests}"

@jagdishadusumalli
Copy link

hi @msmafra
Thanks for the fix you gave for smoke-test.sh
i was also testing the test-fonts.sh script at
https://github.com/ryanoasis/nerd-fonts/blob/master/bin/scripts/test-fonts.sh

When i ran it, its does not show any icons and shows hex codes for all symbols
Not even a single symbol is getting rendered
I am using the JetBrainsMono Nerd Font in ITerm
See the screenshot

Screenshot 2024-07-05 at 1 07 09 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment