#font #truetype #opentype #ttf #otf

stb_truetype

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

8 releases

0.2.4 Sep 7, 2018
0.2.3 Aug 27, 2018
0.2.2 Feb 12, 2018
0.2.1 Mar 11, 2017
0.1.2 Feb 14, 2016

#3 in Rendering

Download history 1636/week @ 2018-09-18 1827/week @ 2018-09-25 2217/week @ 2018-10-02 1957/week @ 2018-10-09 2500/week @ 2018-10-16 2685/week @ 2018-10-23 3153/week @ 2018-10-30 2311/week @ 2018-11-06 4078/week @ 2018-11-13 4090/week @ 2018-11-20 3609/week @ 2018-11-27 3130/week @ 2018-12-04 3161/week @ 2018-12-11

7,889 downloads per month
Used in 172 crates (1 directly)

MIT/Apache

47KB
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.

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

~105KB