#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

#854 in Text processing

Download history 2665/week @ 2024-07-19 2701/week @ 2024-07-26 2958/week @ 2024-08-02 4388/week @ 2024-08-09 4160/week @ 2024-08-16 5107/week @ 2024-08-23 4747/week @ 2024-08-30 4450/week @ 2024-09-06 3573/week @ 2024-09-13 3267/week @ 2024-09-20 3571/week @ 2024-09-27 4674/week @ 2024-10-04 4093/week @ 2024-10-11 4774/week @ 2024-10-18 3642/week @ 2024-10-25 3812/week @ 2024-11-01

17,164 downloads per month
Used in 37 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