MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
Text.cpp File Reference
+ Include dependency graph for Text.cpp:

Go to the source code of this file.

Namespaces

namespace  MayaFlux
 Main namespace for the Maya Flux audio engine.
 
namespace  MayaFlux::Portal
 
namespace  MayaFlux::Portal::Text
 

Functions

bool MayaFlux::Portal::Text::add_fallback_font (const std::string &font_path)
 Load a font file and register it as a fallback on the default atlas.
 
bool MayaFlux::Portal::Text::add_fallback_font (std::string_view family, std::string_view style)
 Locate a system font by family and style, then register it as a fallback.
 
std::shared_ptr< LayoutResult > MayaFlux::Portal::Text::create_layout (std::string_view text, float pen_x=0.F, float pen_y=0.F, uint32_t wrap_w=0)
 Lay out a UTF-8 string into screen-space glyph quads using the default atlas.
 
GlyphAtlas & MayaFlux::Portal::Text::get_default_atlas ()
 Return the default GlyphAtlas, or nullptr if set_default_font() has not been called successfully.
 
bool MayaFlux::Portal::Text::initialize (std::optional< Core::TextConfig > config)
 Initialize Portal::Text.
 
bool MayaFlux::Portal::Text::is_initialized ()
 Returns true after a successful initialize() call.
 
bool MayaFlux::Portal::Text::set_default_font (const std::string &font_path, uint32_t pixel_size=24, uint32_t atlas_size=512)
 Load a font file and create the default GlyphAtlas at a given size.
 
bool MayaFlux::Portal::Text::set_default_font (std::string_view family, std::string_view style, uint32_t pixel_size, uint32_t atlas_size=512)
 Locate a system font by family and style, then load it as the default.
 
void MayaFlux::Portal::Text::shutdown ()
 Shutdown Portal::Text.