nerd_fonts

Crates.ionerd_fonts
lib.rsnerd_fonts
version0.1.9
sourcesrc
created_at2019-06-21 09:52:50.05074
updated_at2020-03-16 09:57:13.895227
descriptionNerd Fonts in rust.
homepagehttps://github.com/g1eny0ung/nerd-fonts.rs
repositoryhttps://github.com/g1eny0ung/nerd-fonts.rs
max_upload_size
id142558
size90,570
Yue Yang (g1eny0ung)

documentation

https://docs.rs/nerd_fonts

README

nerd-fonts.rs

Build Status Crates.io

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

Commit count: 37

cargo fmt