# HarfBuzz

> The open source text shaping engine

Source: https://talira.ai/catalog/harfbuzz-0g5qf7ef
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library, Command-line tool
- Categories: [libraries / text / shaping](https://talira.ai/categories/libraries/text/shaping), [libraries / fonts / subsetting](https://talira.ai/categories/libraries/fonts/subsetting), [languages / c](https://talira.ai/categories/languages/c)
- Licence: MIT-Modern-Variant[^3]
- Pricing: Free and open source[^3]
- Pricing notes: Free and open source.
- Free tier: yes[^3]
- Backed by: [HarfBuzz](https://talira.ai/orgs/harfbuzz.md)

HarfBuzz is a text shaping library: it turns a run of Unicode text and a font into correctly chosen and positioned glyphs for any writing system, applying OpenType layout (and Apple Advanced Typography and Graphite) so that Arabic joins, Indic scripts reorder and ligatures and kerning come out right. It has grown into a font platform: libharfbuzz-subset subsets fonts and instances variable fonts, and newer libraries rasterize glyphs to bitmaps, write them as SVG or PDF, or encode them for GPU rendering, with integrations for FreeType, Cairo, CoreText, DirectWrite, ICU and GObject. Command-line tools (hb-shape, hb-view, hb-subset, hb-info) come with it. Its API and ABI have stayed compatible since the 0.9 series. Android, Chrome, Firefox, GNOME, Qt, LibreOffice, Flutter and Adobe's apps use it. [HarfRust](https://talira.ai/catalog/harfrust-5n8vcc2s.md) is its Rust port.

## Links

- Website: https://harfbuzz.github.io/
- GitHub: https://github.com/harfbuzz/harfbuzz
- Docs: https://harfbuzz.github.io/

## Problems it solves

- render Arabic, Hindi or Thai text correctly in my app, not as disconnected letters
- turn a Unicode string and a font file into positioned glyphs for my text renderer
- apply OpenType ligatures, kerning and font features when I draw text
- subset a font to only the characters my web page or PDF uses
- instance a variable font at a fixed weight to make a smaller static font
- rasterize glyphs, including color emoji fonts, without depending on a platform's text APIs
- render text on the GPU from glyph outlines
- shape text from the command line to debug how a font renders a string

## Features

- OpenType, Apple Advanced Typography (AAT) and Graphite shaping
- Font subsetting and variable-font instancing (libharfbuzz-subset)
- Glyph rasterization to bitmaps, including color fonts (libharfbuzz-raster)
- Glyph output to SVG and PDF (libharfbuzz-vector)
- GPU glyph rendering with GLSL, WGSL, MSL and HLSL shaders (libharfbuzz-gpu)
- Integrations with FreeType, CoreText, DirectWrite, Uniscribe, Cairo, ICU and GObject
- Command-line tools: hb-shape, hb-view, hb-subset, hb-info, hb-raster, hb-vector
- Stable API and ABI back to the 0.9.x series
- Single-file amalgamated builds (harfbuzz.cc, harfbuzz-world.cc)
- Python bindings (uharfbuzz)

## Limitations

- Doesn't do font hinting or autohinting: use FreeType or Skrifa for hinted rasterization[^1]
- Doesn't do bidirectional text reordering (bidi): apply the Unicode bidi algorithm with ICU or FriBidi first[^2]
- Doesn't do line breaking, hyphenation or justification: it shapes text along a single line[^2]

## Capabilities

- Has a command line tool: plan not known
- Has official SDKs: plan not known

## Trust

Overall: 0.74 out of 1.
Signals: maintenance 1.00, adoption 0.76, momentum 0.47, community 1.00, backing 0.50, extensibility 0.20.

- last commit 4 days ago
- 931 commits in the last 90 days
- latest release 15.2.0 10 days ago
- 6.3k GitHub stars
- 331 contributors
- has a company behind it
- used by Android, Chrome, Firefox, GNOME

## Alternatives

- [HarfRust](https://talira.ai/catalog/harfrust-5n8vcc2s.md): A Rust port of the HarfBuzz text shaping engine.
- [subsetter](https://talira.ai/catalog/subsetter-5mg54ff0.md): Reduces the size and coverage of OpenType fonts.

## Sources

[^1]: https://github.com/harfbuzz/harfbuzz/blob/main/README.md (checked 26 Nov 2026)
[^2]: https://harfbuzz.github.io/what-harfbuzz-doesnt-do.html (checked 26 Nov 2026)
[^3]: https://github.com/harfbuzz/harfbuzz/blob/main/COPYING (checked 26 Nov 2026)
