#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

#843 in Text processing

Download history 3463/week @ 2024-07-04 2677/week @ 2024-07-11 2792/week @ 2024-07-18 2625/week @ 2024-07-25 2951/week @ 2024-08-01 3999/week @ 2024-08-08 4556/week @ 2024-08-15 4778/week @ 2024-08-22 4776/week @ 2024-08-29 4467/week @ 2024-09-05 4071/week @ 2024-09-12 2864/week @ 2024-09-19 3587/week @ 2024-09-26 4507/week @ 2024-10-03 4258/week @ 2024-10-10 4617/week @ 2024-10-17

17,776 downloads per month
Used in 38 crates (10 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–2.9MB
~59K SLoC