#unicode #font #unicode-text #shaping #opentype #api-bindings

sys harfbuzz-sys

Rust bindings to the HarfBuzz text shaping engine

25 releases

0.6.1 Apr 23, 2024
0.5.0 Jul 29, 2020
0.3.4 Jan 9, 2020
0.3.3 Nov 18, 2019
0.1.2 Nov 25, 2015

#922 in Text processing

Download history 3883/week @ 2024-08-18 5325/week @ 2024-08-25 4544/week @ 2024-09-01 4738/week @ 2024-09-08 2971/week @ 2024-09-15 3566/week @ 2024-09-22 3553/week @ 2024-09-29 4669/week @ 2024-10-06 4316/week @ 2024-10-13 4732/week @ 2024-10-20 3306/week @ 2024-10-27 4184/week @ 2024-11-03 3268/week @ 2024-11-10 3756/week @ 2024-11-17 3288/week @ 2024-11-24 4062/week @ 2024-12-01

14,637 downloads per month
Used in 35 crates (9 directly)

MIT/Apache

2MB
46K SLoC

C++ 36K SLoC // 0.3% comments Rust 4.5K SLoC // 0.0% comments Python 3.5K SLoC // 0.1% comments M4 1K SLoC // 0.3% comments Automake 671 SLoC // 0.0% comments C 303 SLoC // 0.1% comments Shell 149 SLoC // 0.1% comments Templ 40 SLoC // 0.6% comments

Contains (obscure autoconf code, 16KB) harfbuzz/configure.ac

harfbuzz-sys

Build Status Crates.io Docs

HarfBuzz is a text shaping engine. It solves the problem of selecting and positioning glyphs from a font given a Unicode string.

This crate provides low-level bindings to the C API.

Features

  • freetype - Enables bindings to the FreeType font engine. (Enabled by default.)

  • coretext - Enables bindings to the CoreText font engine. (Apple platforms only) (Enabled by default.)

  • directwrite - Enables bindings to the DirectWrite font engine. (Windows only) (Enabled by default.)

  • bundled - Use the bundled copy of the harfbuzz library rather than one installed on the system.

License

Licensed under either of

at your option.

Contribution

Contributions are welcome by pull request.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~0–3MB
~61K SLoC