#font #truetype #opentype #ttf #otf


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

6 releases

0.2.2 Feb 12, 2018
0.2.1 Mar 11, 2017
0.2.0 Mar 19, 2016
0.1.2 Feb 14, 2016

#2 in #font

Download history 1252/week @ 2018-05-06 1740/week @ 2018-05-13 2167/week @ 2018-05-20 1974/week @ 2018-05-27 2316/week @ 2018-06-03 2343/week @ 2018-06-10 2042/week @ 2018-06-17 1288/week @ 2018-06-24 1854/week @ 2018-07-01 1714/week @ 2018-07-08 2133/week @ 2018-07-15 1548/week @ 2018-07-22 1258/week @ 2018-07-29

7,658 downloads per month


Build Status Crates.io docs.rs

This is a straight 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.

If you want to use this crate directly, add the following to your Cargo.toml:

stb_truetype = "0.2.2"

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 my other project, RustType.


Licensed under either of

at your option.


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.

MIT / Apache-2.0 license


Reverse deps