Nerd Fonts in rust.
https://github.com/ryanoasis/nerd-fonts#font-installation
In your Cargo.toml
, add:
toml
[dependencies]
nerd_fonts = "0.1"
Then import it:
rust
extern crate nerd_fonts;
Use NerdFonts::load
to load:
```rust use nerd_fonts::NerdFonts;
let nf = NerdFonts { nf: NerdFonts::load(), };
let nfcustomc = nf.get("custom-c").unwrap(); // '\u{e61e}' ```
```sh git clone https://github.com/g1eny0ung/nerd-fonts.rs.git && cd nerd-fonts.rs
cd bin/nerdfontscsstoyaml && ./generate-nerd-fonts-yaml.sh
cd ../..
cargo test ```
Pull a request or open an issue to describe your changes or problems.
MIT @ g1eny0ung