4 releases
0.2.0 | Apr 15, 2023 |
---|---|
0.1.2 | Feb 27, 2023 |
0.1.1 | Feb 27, 2023 |
0.1.0 | Feb 27, 2023 |
#32 in #opentype
6KB
57 lines
HarfBuzz Bindings for Rust
Bindings for the HarfBuzz text shaping engine generated with bindgen to support the newest versions of HarfBuzz.
Preconditions
- Install
vcpkg
(https://github.com/microsoft/vcpkg) - Install
harfbuzz
withvcpkg install harfbuzz --triplet x64-windows-static
(or another triplet matching your target OS) to get a statically compiled HarfBuzz version - Set environment variable
RUSTFLAGS = "-Ctarget-feature=+crt-static"
- Setup
bindgen
(https://rust-lang.github.io/rust-bindgen/requirements.html)
Usage
Add this dependency to your Cargo.toml
:
[dependencies]
harfbuzz-bindings = "0.2"
And fire up cargo build
!
Additional information
This crate has been implemented following the bindgen tutorial.
Dependencies
~0–2MB
~36K SLoC