#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

#928 in Text processing

Download history 5065/week @ 2024-08-12 3921/week @ 2024-08-19 5237/week @ 2024-08-26 4450/week @ 2024-09-02 4613/week @ 2024-09-09 3029/week @ 2024-09-16 3570/week @ 2024-09-23 3461/week @ 2024-09-30 4779/week @ 2024-10-07 4354/week @ 2024-10-14 4627/week @ 2024-10-21 3462/week @ 2024-10-28 4072/week @ 2024-11-04 3228/week @ 2024-11-11 3812/week @ 2024-11-18 3307/week @ 2024-11-25

14,785 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
~62K SLoC