#font #shaping #unicode #opentype #unicode-text #text

no-std harfbuzz

Rust bindings to the HarfBuzz text shaping engine

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

#199 in Text processing

Download history 3320/week @ 2023-12-23 2809/week @ 2023-12-30 2959/week @ 2024-01-06 2118/week @ 2024-01-13 2859/week @ 2024-01-20 3879/week @ 2024-01-27 3735/week @ 2024-02-03 4102/week @ 2024-02-10 2827/week @ 2024-02-17 4447/week @ 2024-02-24 5080/week @ 2024-03-02 5238/week @ 2024-03-09 5519/week @ 2024-03-16 7074/week @ 2024-03-23 5233/week @ 2024-03-30 5613/week @ 2024-04-06

24,623 downloads per month
Used in 6 crates (3 directly)

MIT/Apache

305KB
5K SLoC

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

~0–1.6MB
~30K SLoC