|
MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
|
#include "Text.hpp"#include "GlyphAtlas.hpp"#include "TypeFaceFoundry.hpp"#include "FontDiscovery.hpp"#include "MayaFlux/Core/GlobalGraphicsInfo.hpp"#include "MayaFlux/Journal/Archivist.hpp"
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 | |
| 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. | |