This is a snapshot of a work-in-progress documentation theme. If you feel lost, miss something, or want to see the original Doxygen docs instead, head over to the archived version of this documentation page.

Magnum::Text::MagnumFontConverter class

MagnumFont converter plugin.

Expects filename prefix, creates two files, prefix.conf and prefix.tga. See MagnumFont for more information about the font.

This plugin is available only on desktop OpenGL, as it uses Texture::image() to read back the generated data. It depends on the Text library and the TgaImageConverter plugin. It is built if WITH_MAGNUMFONTCONVERTER is enabled when building Magnum. To use as a dynamic plugin, you need to load the "MagnumFontConverter" plugin from MAGNUM_PLUGINS_FONTCONVERTER_DIR. To use as a static plugin or as a dependency of another plugin with CMake, you need to request the MagnumFontConverter component of the Magnum package and link to the Magnum::MagnumFontConverter target. See Downloading and building, Usage with CMake and Loading and using plugins for more information.

Base classes

class AbstractFontConverter
Base for font converter plugins.

Constructors, destructors, conversion operators

MagnumFontConverter() explicit
Default constructor.
MagnumFontConverter(PluginManager::AbstractManager& manager, const std::string& plugin) explicit
Plugin manager constructor.

Private functions

auto doFeatures() const override -> Features virtual
Implementation for features()
auto doExportFontToData(AbstractFont& font, GlyphCache& cache, const std::string& filename, const std::u32string& characters) const override -> std::vector<std::pair<std::string, Containers::Array<char>>> virtual
Implementation for exportFontToData()

Function documentation

std::vector<std::pair<std::string, Containers::Array<char>>> Magnum::Text::MagnumFontConverter::doExportFontToData(AbstractFont& font, GlyphCache& cache, const std::string& filename, const std::u32string& characters) const override virtual private

Implementation for exportFontToData()

If the plugin doesn't have Feature::MultiFile, default implementation calls doExportFontToSingleData().