Introduction to Harfbuzz

The Harfbuzz package contains an OpenType text shaping engine.

This package is known to build and work properly using an LFS 7.8-systemd platform.

Package Information

Harfbuzz Dependencies



Cairo-1.14.2, gobject-introspection-1.46.0, GTK-Doc-1.24, and Graphite2-1.3.3



Recommended dependencies are not strictly required to build the package. However, you might not get expected results at runtime if you don't install them. Please do not report bugs with this package if you have not installed the recommended dependencies.

User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/harfbuzz

Installation of Harfbuzz

Install Harfbuzz by running the following commands:

./configure --prefix=/usr --with-gobject &&

To test the results, issue: make check.

Now, as the root user:

make install

Command Explanations

--with-gobject: This switch enables building of the Harfbuzz GObject wrapper. Remove it if you did not install GLib.

--with-graphite2: This switch enables Graphite2 support.

--enable-gtk-doc: Use this parameter if GTK-Doc is installed and you wish to rebuild and install the API documentation.


Installed Programs: hb-ot-shape-closure, hb-shape, and hb-view (only if Cairo is installed)
Installed Libraries: libharfbuzz.so, libharfbuzz-gobject.so, and libharfbuzz-icu.so
Installed Directories: /usr/include/harfbuzz and /usr/share/gtk-doc/html/harfbuzz

Short Descriptions


gives the set of characters contained in a string, represented as single characters and/or single character names. Example: hb-ot-shape-closure /usr/share/fonts/dejavu/DejaVuSans.ttf "Hello World.".


is used for the conversion of text strings into positioned glyphs.


may be used for a graphical view of a string shape, using a particular font, as a set of glyphs. Output format is automatically defined by the file extension, the supported ones being ansi/png/svg/pdf/ps/eps. Example: hb-view --output-file=hello.png /usr/share/fonts/dejavu/DejaVuSans.ttf "Hello World.".


contains functions for complex text shaping.

Last updated on 2015-11-20 18:21:44 -0600