Expand description
Nerd Fonts in rust.
§How to use
In your Cargo.toml, add:
[dependencies]
nerd_fonts = "0.1"Then import it:
extern crate nerd_fonts;Use NerdFonts::load to load:
use nerd_fonts::NerdFonts;
let nf = NerdFonts {
nf: NerdFonts::load(),
};
let nf_custom_c = nf.get("custom-c").unwrap(); // '\u{e61e}'Structs§
- Nerd
Fonts - NerdFonts includes nf field which stores the whole nerd fonts Yaml.