Skip to content

blaind/ttf2mesh-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

13695cf · Aug 2, 2021

History

26 Commits
Aug 2, 2021
Jul 31, 2021
Jul 31, 2021
Jul 31, 2021
Aug 2, 2021
Aug 2, 2021
Jul 31, 2021
Jul 31, 2021
Aug 2, 2021
Jul 31, 2021
Jul 31, 2021

Repository files navigation

ttf2mesh-rs   Build Status Latest Version Docs Version

A high-level Rust wrapper API for fetisov's ttf2mesh library for generating a 2d/3d mesh (vertices, indices and normals [only for 3D]) from TrueType (.ttf) glyphs.

Installing

Prequisites:

apt-get install build-essential patch

Add to Cargo.toml:

[dependencies]
ttf2mesh-rs = "*" # change with latest version

Examples

See examples -folder and crate docs.

Security

The API surface (mainly .ttf loading) has been fuzzed with cargo-fuzz. Current findings have been reported upstream and being applied at build time.

Still, be careful if planning to use this library for parsing untrusted fonts.

Development

Install prequisites (see above).

Clone repository:

git clone https://github.com/blaind/ttf2mesh-rs.git

Update submodules

git submodule update --init

Develop

License

Licensed under MIT license

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the software by you, shall be licensed as above, without any additional terms or conditions.