58 个版本 (37 个破坏性更新)
使用旧的 Rust 2015
0.37.0 | 2024 年 6 月 14 日 |
---|---|
0.36.0 | 2024 年 2 月 15 日 |
0.35.0 | 2024 年 1 月 19 日 |
0.34.1 | 2023 年 12 月 7 日 |
0.0.0 | 2014 年 12 月 11 日 |
#74 in 图形 API
每月 25,962 次下载
用于 65 个 crate (22 个直接)
110KB
1.5K SLoC
freetype-rs 
FreeType 库的 Rust 绑定
要求
- Cargo:我们使用 Cargo 编译项目。
- FreeType2 开发库:有关安装说明,请参阅 freetype-sys。
如果构建失败,则可能是 pkg-config 无法找到可以绑定的 FreeType 库。使用 "bundled" 功能构建库的静态版本(需要 C 编译器)
[dependencies]
freetype-rs = { version = "*", features = ["bundled"] }
构建
克隆此仓库然后运行
cd freetype-rs
cargo build
示例
要构建示例,请使用 cargo test
。它们都构建在 ./target/debug/examples/*
。
要运行示例,请使用 cargo run --example name
,例如
cargo run --example single_glyph examples/assets/FiraSans-Regular.ttf A
依赖项
~6MB
~128K SLoC