stb_truetype_rust

Crates.iostb_truetype_rust
lib.rsstb_truetype_rust
version1.26.1
sourcesrc
created_at2022-01-06 15:18:45.230642
updated_at2022-01-06 15:22:03.339519
descriptionRust port of the stb_truetype
homepage
repositoryhttps://github.com/StbRust/stb_truetype_rust
max_upload_size
id509011
size233,871
Roman Shapiro (rds1983)

documentation

README

Overview

stb_truetype_rust is Rust port of stb_truetype.h, which is library to save images in BMP, JPG, PNG and TGA formats

Crate

Sample Code

use stb_truetype_rust::ImageWriter::ImageWriter;

fn main() {
    let mut writer = ImageWriter::new("output.jpg");
    writer.write_jpg(width, height, components, image_data, 90);
}

Commit count: 12

cargo fmt