5 releases
0.1.9 | Mar 16, 2020 |
---|---|
0.1.8 | Feb 11, 2020 |
0.1.7 | Dec 10, 2019 |
0.1.6 | Nov 27, 2019 |
0.1.5 | Jun 24, 2019 |
#187 in #font
21 downloads per month
30KB
52 lines
nerd-fonts.rs
Nerd Fonts in rust.
Preinstall
https://github.com/ryanoasis/nerd-fonts#font-installation
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}'
How to develop
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
How to contribute
Pull a request or open an issue to describe your changes or problems.
License
MIT @ g1eny0ung
Dependencies
~185KB