#font #truetype #opentype #ttf #otf

stb_truetype

A straight translation of the font loading code in stb_truetype.h from C to Rust

12 releases

✓ Uses Rust 2018 edition

0.3.0 Sep 6, 2019
0.2.6 Feb 1, 2019
0.2.5 Dec 14, 2018
0.2.4 Sep 7, 2018
0.2.0 Mar 19, 2016

#3 in #font

Download history 5528/week @ 2019-07-25 5390/week @ 2019-08-01 4861/week @ 2019-08-08 5209/week @ 2019-08-15 5726/week @ 2019-08-22 5998/week @ 2019-08-29 9473/week @ 2019-09-05 8596/week @ 2019-09-12 8182/week @ 2019-09-19 8707/week @ 2019-09-26 9788/week @ 2019-10-03 8380/week @ 2019-10-10 8059/week @ 2019-10-17 8941/week @ 2019-10-24 8544/week @ 2019-10-31

23,868 downloads per month
Used in 352 crates (1 directly)

MIT/Apache

48KB
1K SLoC

stb_truetype-rs

Crates.io docs.rs

This is a translation of the font loading code in stb_truetype.h from C to Rust. It is intended as a stopgap dependency for libraries that deal with fonts until something better, written in idiomatic Rust, is available. This library is not an example of good Rust code, but it works.

Please note that the documentation provided is also a straight copy from the original code.

Currently this port does not include the rasterisation or font querying API provided by stb_truetype.h. If you are looking for font rasterisation, that is provided by RustType.

Minimum supported rust compiler

This crate is maintained with latest stable rust.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~98KB