MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ get_default_atlas()

MAYAFLUX_API GlyphAtlas & MayaFlux::Portal::Text::get_default_atlas ( )

Return the default GlyphAtlas, or nullptr if set_default_font() has not been called successfully.

Definition at line 124 of file Text.cpp.

125{
126 GlyphAtlas* atlas = TypeFaceFoundry::instance().get_default_glyph_atlas();
127 MF_ASSERT(Journal::Component::Portal, Journal::Context::API,
128 atlas != nullptr, "call set_default_font before get_default_atlas");
129 return *atlas;
130}
#define MF_ASSERT(comp, ctx, condition,...)
Rasterizes and packs glyphs from a FontFace into a TextureContainer.

References MayaFlux::Journal::API, MayaFlux::Portal::Text::TypeFaceFoundry::get_default_glyph_atlas(), MayaFlux::Portal::Text::TypeFaceFoundry::instance(), MF_ASSERT, and MayaFlux::Journal::Portal.

Referenced by create_layout().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: