#true-type #port #stb #bmp #height #stb-truetype

stb_truetype_rust

Rust port of the stb_truetype

1 stable release

Uses old Rust 2015

2.27.0 Jan 6, 2022
1.26.1 Jan 6, 2022

#6 in #height

Unlicense

235KB
6K SLoC

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);
}

No runtime deps