Introduction to Harfbuzz
The HarfBuzz package contains an
OpenType text shaping engine.
This package is known to build and work properly using an LFS-11.1
platform.
Package Information
HarfBuzz Dependencies
Recommended
gobject-introspection-1.70.0
(required if building GNOME), GLib-2.70.4 (required for Pango), Graphite2-1.3.14 (required for building
texlive-20210325 or LibreOffice-7.3.0.3 with system harfbuzz),
ICU-70.1, and
FreeType-2.11.1 (after HarfBuzz-3.4.0 is
installed, reinstall FreeType-2.11.1)
Optional
Cairo-1.17.4 (circular: build cairo and all its
recommended dependencies, including harfbuzz, first, then rebuild
harfbuzz if the cairo backend is needed), git-2.35.1, GTK-Doc-1.33.2, FontTools
(Python 3 module, for the testsuite), and ragel
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: https://wiki.linuxfromscratch.org/blfs/wiki/harfbuzz
Installation of HarfBuzz
Install HarfBuzz by running the
following commands:
mkdir build &&
cd build &&
meson --prefix=/usr \
--buildtype=release \
-Dgraphite2=enabled &&
ninja
To test the results, issue: ninja
test.
Now, as the root
user:
ninja install
Command Explanations
--buildtype=release
:
Specify a buildtype suitable for stable releases of the package, as
the default may produce unoptimized binaries.
-Dgraphite2=enabled
: This
switch enables Graphite2 support,
which is required for building texlive-20210325 or LibreOffice-7.3.0.3 with system harfbuzz.
-Ddocs=false
: If GTK-Doc-1.33.2 is
installed, the documentation is built and installed. This switch
prevents that.