| Crates.io | nerd_fonts |
| lib.rs | nerd_fonts |
| version | 0.1.9 |
| created_at | 2019-06-21 09:52:50.05074+00 |
| updated_at | 2020-03-16 09:57:13.895227+00 |
| description | Nerd Fonts in rust. |
| homepage | https://github.com/g1eny0ung/nerd-fonts.rs |
| repository | https://github.com/g1eny0ung/nerd-fonts.rs |
| max_upload_size | |
| id | 142558 |
| size | 90,570 |
Nerd Fonts in rust.
https://github.com/ryanoasis/nerd-fonts#font-installation
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}'
git clone https://github.com/g1eny0ung/nerd-fonts.rs.git && cd nerd-fonts.rs
cd bin/nerd_fonts_css_to_yaml && ./generate-nerd-fonts-yaml.sh
cd ../..
cargo test
Pull a request or open an issue to describe your changes or problems.
MIT @ g1eny0ung