Class HarfBuzz

java.lang.Object
org.lwjgl.util.harfbuzz.HarfBuzz

public class HarfBuzz extends Object
Native bindings to HarfBuzz, a text shaping library.

Using the HarfBuzz library allows programs to convert a sequence of Unicode input into properly formatted and positioned glyph output — for any writing system and language.

FreeType interop

The default LWJGL HarfBuzz build does not include FreeType support and the hb_ft_* functions will not be available. However, LWJGL's FreeType build includes HarfBuzz and exports its full API. When working with both HarfBuzz and FreeType, the HarfBuzz bindings can be made to use FreeType's shared library, with one of the following ways:

  • launch the JVM with -Dorg.lwjgl.harfbuzz.libname=freetype
  • run Configuration.HARFBUZZ_LIBRARY_NAME.set("freetype")
  • run Configuration.HARFBUZZ_LIBRARY_NAME.set(FreeType.getLibrary()) - recommended

The org.lwjgl.harfbuzz.natives module is not necessary when enabling the above.