Magnum/Text/AbstractFont.h file

Class Magnum::Text::AbstractFont, enum Magnum::Text::FontFeature, enum set Magnum::Text::FontFeatures.

Namespaces

namespace Magnum
Root namespace.
namespace Magnum::Text
Text rendering.

Classes

class Magnum::Text::AbstractFont
Base for font plugins.
struct Magnum::Text::AbstractFont::Properties
Font properties.
class Magnum::Text::AbstractLayouter deprecated in Git master
Base for text layouters.

Enums

enum class FontFeature: UnsignedByte { OpenData = 1 << 0, FileCallback = 1 << 1 new in 2019.10, PreparedGlyphCache = 1 << 2 } new in 2020.06
Features supported by a font implementation.

Typedefs

using FontFeatures = Containers::EnumSet<FontFeature> new in 2020.06
Set of features supported by a font implementation.

Functions

auto operator<<(Debug& debug, FontFeature value) -> Debug&
Debug output operator.
auto operator<<(Debug& debug, FontFeatures value) -> Debug&
Debug output operator.

Defines

#define MAGNUM_TEXT_ABSTRACTFONT_PLUGIN_INTERFACE new in Git master
Font plugin interface.

Define documentation

#define MAGNUM_TEXT_ABSTRACTFONT_PLUGIN_INTERFACE new in Git master

Font plugin interface.

Same string as returned by AbstractFont::pluginInterface(), meant to be used inside CORRADE_PLUGIN_REGISTER() to avoid having to update the interface string by hand every time the version gets bumped:

CORRADE_PLUGIN_REGISTER(MyFont, MyNamespace::MyFont,
    MAGNUM_TEXT_ABSTRACTFONT_PLUGIN_INTERFACE)

The interface string version gets increased on every ABI break to prevent silent crashes and memory corruption. Plugins built against the previous version will then fail to load, a subsequent rebuild will make them pick up the updated interface string.