Bindings for the HarfBuzz text shaping engine generated with bindgen to support the newest versions of HarfBuzz.
- 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)
Add this dependency to your Cargo.toml
:
[dependencies]
harfbuzz-bindings = "0.2"
And fire up cargo build
!
This crate has been implemented following the bindgen tutorial.