8 releases (4 breaking)

0.6.0 Apr 10, 2024
0.4.0 Jul 29, 2020
0.3.1 Mar 18, 2019
0.3.0 Nov 6, 2018
0.1.0 May 26, 2015

#453 in Text processing

Download history 301/week @ 2024-07-21 240/week @ 2024-07-28 310/week @ 2024-08-04 295/week @ 2024-08-11 354/week @ 2024-08-18 222/week @ 2024-08-25 297/week @ 2024-09-01 272/week @ 2024-09-08 273/week @ 2024-09-15 274/week @ 2024-09-22 293/week @ 2024-09-29 239/week @ 2024-10-06 305/week @ 2024-10-13 196/week @ 2024-10-20 192/week @ 2024-10-27 268/week @ 2024-11-03

985 downloads per month
Used in 5 crates (2 directly)

MIT/Apache

2MB
47K SLoC

C++ 36K SLoC // 0.3% comments Rust 5K SLoC // 0.0% comments Python 3.5K SLoC // 0.1% comments M4 1K SLoC // 0.3% comments Automake 670 SLoC // 0.0% comments C 302 SLoC // 0.1% comments Shell 148 SLoC // 0.1% comments Templ 39 SLoC // 0.6% comments

harfbuzz

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 a higher level API (than the raw C bindings).

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