HarfBuzz-2.3.1

#### Beyond Linux® From Scratch - Version 2019-02-27

### Chapter 10. Graphics and Font Libraries

- Prev

  Graphite2-1.3.13

- Next

  IJS-0.35

- Up
- Home

# HarfBuzz-2.3.1

## Introduction to Harfbuzz

The HarfBuzz package contains an OpenType text shaping engine.

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

### Package Information

- Download (HTTP): https://www.freedesktop.org/software/harfbuzz/release/harfbuzz-2.3.1.tar.bz2

- Download MD5 sum: 531de9df7c8a5405dd9c6a873fcee8c2

- Download size: 17 MB

- Estimated disk space required: 146 MB (with tests)

- Estimated build time: 0.5 SBU (Using parallelism=4; with tests)

### HarfBuzz Dependencies

#### Recommended

GLib-2.58.3 (required for Pango), Graphite2-1.3.13 (required for building texlive-20180414 or LibreOffice-6.2.0.3 with system harfbuzz), ICU-63.1, and FreeType-2.9.1 (after HarfBuzz-2.3.1 is installed, reinstall FreeType-2.9.1)

#### Optional

Cairo-1.16.0 (circular: build cairo and all its recommended dependencies, including harfbuzz, first, then rebuild harfbuzz if the cairo backend is needed), gobject-introspection-1.58.3, GTK-Doc-1.29, Python-2.7.15 (required for the testsuite), and FontTools (for the testsuite)

### Warning

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 --with-graphite2 &&
    make

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, which is required for building texlive-20180414 or LibreOffice-6.2.0.3 with system harfbuzz.

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

## Contents

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

### Short Descriptions

hb-ot-shape-closure | 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.".
hb-shape | is used for the conversion of text strings into positioned glyphs.
hb-subset | is used to create subsets of fonts, and display text using them.
hb-view | 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.".
`libharfbuzz.so` | HarfBuzz text shaping library.
`libharfbuzz-gobject.so` | HarfBuzz text shaping library GObject integration.
`libharfbuzz-icu.so` | HarfBuzz text shaping library ICU integration.

Last updated on 2019-02-17 13:17:55 -0600

- Prev

  Graphite2-1.3.13

- Next

  IJS-0.35

- Up
- Home