twemoji-rs

Crates.iotwemoji-rs
lib.rstwemoji-rs
version0.1.2
sourcesrc
created_at2023-01-29 17:58:09.712875
updated_at2023-02-07 09:21:14.510694
descriptionA word-cloud image generation crate.
homepage
repositoryhttps://github.com/Inspirateur/twemoji-rs
max_upload_size
id771130
size3,368,013
Téo Orthlieb (Inspirateur)

documentation

README

twemoji-rs

Small Rust crate to provide the twemoji icon .png corresponding to a string

use twemoji_rs::get_twemoji;

if let Some(path_to_icon) = get_twemoji("🚀") {
    // The 72x72 Twemoji image for this emoji
    let img = ImageReader::open(path_to_icon)?.decode()?;
} else {
    println!("Couldn't find an icon file :(");
}

All credits to https://twemoji.twitter.com/ for the images !

Commit count: 11

cargo fmt