diff --git a/nf.css b/nf.css index bc8ba05..63c86a0 100644 --- a/nf.css +++ b/nf.css @@ -1,8 +1,12 @@ + +@import "https://cdn.jsdelivr.net/gh/ryanoasis/nerd-fonts@master/css/nerd-fonts-generated.min.css"; + @font-face { - font-family: "NF icons"; + font-family: 'NerdFontsSymbols Nerd Font'; + /* @TODO you need to adjust the path to the font: */ src: url('https://cdn.jsdelivr.net/gh/ryanoasis/nerd-fonts@master/patched-fonts/NerdFontsSymbolsOnly/complete/Symbols-2048-em%20Nerd%20Font%20Complete%20Mono%20Windows%20Compatible.ttf') format('truetype'); font-weight: normal; - font-style:normal ; + font-style: normal; } .icon { @@ -15,16 +19,16 @@ } i[class^="nf-"] { - font-family: "NF icons"; + font-family: 'NerdFontsSymbols Nerd Font'; + speak: none; font-style: normal; - font-weight: 400; + font-weight: normal; font-variant: normal; text-transform: none; line-height: 1; + /* Better Font Rendering (from devicons, et al) */ -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; transition: all 0.15s ease-in-out; color: currentColor; } - -@import "https://cdn.jsdelivr.net/gh/ryanoasis/nerd-fonts@master/css/nerd-fonts-generated.min.css";