HarfBuzz font plugin.
This plugin provides the
This plugin depends on the Text and HarfBuzz libraries and the FreeTypeFont plugin. It is built if
WITH_HARFBUZZFONT is enabled when building Magnum Plugins. To use as a dynamic plugin, load
"HarfBuzzFont" via Corrade::
Additionally, if you're using Magnum as a CMake subproject, bundle the magnum-plugins repository and do the following. Using HarfBuzz itself as a CMake subproject isn't tested at the moment, so you need to provide it as a system dependency and point
CMAKE_PREFIX_PATH to its installation dir if necessary.
set(WITH_HARFBUZZFONT ON CACHE BOOL "" FORCE) add_subdirectory(magnum-plugins EXCLUDE_FROM_ALL) # So the dynamically loaded plugin gets built implicitly add_dependencies(your-app MagnumPlugins::HarfBuzzFont)
To use as a static plugin or as a dependency of another plugin with CMake, put FindMagnumPlugins.cmake and FindHarfBuzz.cmake into your
modules/ directory, request the
HarfBuzzFont component of the
MagnumPlugins package and link to the
find_package(MagnumPlugins REQUIRED HarfBuzzFont) # ... target_link_libraries(your-app PRIVATE MagnumPlugins::HarfBuzzFont)
- class FreeTypeFont
- FreeType font plugin.