HarfBuzz
| HarfBuzz | |
|---|---|
| Original author | The FreeType Project |
| Developers | Behdad Esfahbod, Khaled Hosny |
| Stable release | 13.1.1 (13 March 2026) [±] |
| Written in | C++ |
| Operating system | Unix-like, Windows, OpenHarmony |
| Type | Software development library |
| License | MIT |
| Website | harfbuzz |
| Repository | github |
HarfBuzz (loose transliteration of Persian calque حرفباز harf-bāz, literally "open type") is an open-source text shaping engine written in C++. Text shaping is the process of converting a sequence of Unicode code points into the correct glyph identifiers and precise positions needed to render text on screen or in print. For scripts where characters change shape depending on their neighbours (such as Arabic, Devanagari, or Tamil), text shaping ensures that the right glyph forms are selected and joined correctly. Without it, text renderers would display raw disconnected code points rather than readable words.
HarfBuzz takes a string of Unicode text, a font file, and information about the writing script and language as input. It returns a list of glyph IDs and their x/y positions, which a rendering engine such as Cairo or Skia then uses to draw the text. The library supports multiple font technologies, including OpenType, Apple Advanced Typography (AAT), and SIL Graphite.
The project originated in the FreeType codebase and went through several development phases before Behdad Esfahbod rewrote it from scratch around 2012. It is now used by major operating systems, browsers, and desktop toolkits worldwide.