Font Tools

HarfBuzz – text shaping library

HarfBuzz is an OpenType text shaping engine.

It solves the problem of selecting and positioning glyphs from a font given a Unicode string.

Text shaping is an integral part of preparing text for display. It’s a fairly low level operation; HarfBuzz is used directly by graphic rendering libraries such as Pango, and the layout engines in Firefox, LibreOffice and Chromium.

If you are writing a layout engine or graphics library yourself, you will need to perform text shaping, and this is where HarfBuzz comes in play.

HarfBuzz began its life as text shaping code within the FreeType project, but was then abstracted out to its own project.

Key Features

  • Text shaping turns codepoints into glyph IDs.
  • Involves querying the font’s ligature tables and determining what substitutions should be made
  • Chooses the correct glyph from the sequence of characters provided.
  • Unicode 10.

Website: harfbuzz.github.io
Support: Documentation, GitHub code repository
Developer: Behdad Esfahbod, Simon Hausmann, Martin Hosken, Jonathan Kew, Lars Knoll, Werner Lemberg, Roozbeh Pournader, Owen Taylor, David Turner
License: MIT License

HarfBuzz is written in C++. Learn C++ with our recommended free books and free tutorials.


Related Software

Font Renderers
HarfBuzzOpenType text shaping engine
FreeTypeSmall and efficient software font engine
LibICULibraries for Unicode and internationalization
FontconfigLibrary for configuring and customizing font access
FriBidiImplementation of the Unicode Bidirectional Algorithm

Read our verdict in the software roundup.


Best Free and Open Source Software Explore our comprehensive directory of recommended free and open source software. Our carefully curated collection spans every major software category.

This directory is part of our ongoing series of informative articles for Linux enthusiasts. It features hundreds of detailed reviews, along with open source alternatives to proprietary solutions from major corporations such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk.

You’ll also find interesting projects to try, hardware coverage, free programming books and tutorials, and much more.

Discovered a useful open source Linux program that we haven’t covered yet? Let us know by completing this form.
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments