#font #truetype #opentype #ttf #otf

unmaintained no-std stb_truetype

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

13 releases

0.3.1 Nov 23, 2019
0.2.8 Sep 6, 2019
0.2.6 Feb 1, 2019
0.2.5 Dec 14, 2018
0.2.0 Mar 19, 2016

#102 in Data formats

Download history 13747/week @ 2023-11-03 13988/week @ 2023-11-10 18911/week @ 2023-11-17 19361/week @ 2023-11-24 11657/week @ 2023-12-01 12231/week @ 2023-12-08 16585/week @ 2023-12-15 7836/week @ 2023-12-22 6625/week @ 2023-12-29 9067/week @ 2024-01-05 8436/week @ 2024-01-12 13799/week @ 2024-01-19 8696/week @ 2024-01-26 9201/week @ 2024-02-02 15749/week @ 2024-02-09 6800/week @ 2024-02-16

43,791 downloads per month
Used in 433 crates (2 directly)

MIT/Apache

49KB
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

~225KB