Crates.io | freetype-rs |
lib.rs | freetype-rs |
version | 0.37.0 |
source | src |
created_at | 2014-12-11 20:21:52.871907 |
updated_at | 2024-06-14 14:22:19.88723 |
description | Bindings for FreeType font library |
homepage | https://github.com/PistonDevelopers/freetype-rs |
repository | https://github.com/PistonDevelopers/freetype-rs.git |
max_upload_size | |
id | 529 |
size | 277,840 |
Rust bindings for FreeType library
If the building fails, then it is likely that pkg-config does not find a FreeType library it can bind to. Use the feature "bundled" to build a static version of the library (requires a C compiler):
[dependencies]
freetype-rs = { version = "*", features = ["bundled"] }
Clone this repo then run
cd freetype-rs
cargo build
To build examples, use cargo test
. They are all built in ./target/debug/examples/*
.
To run examples, use cargo run --example name
, for example:
cargo run --example single_glyph examples/assets/FiraSans-Regular.ttf A