MayaFlux 0.4.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 105 of file Text.cpp.

106{
107 GlyphAtlas* atlas = TypeFaceFoundry::instance().get_default_glyph_atlas();
108 MF_ASSERT(Journal::Component::Portal, Journal::Context::API,
109 atlas != nullptr, "call set_default_font before get_default_atlas");
110 return *atlas;
111}
#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: