|
MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
|
| MAYAFLUX_API std::shared_ptr< Buffers::TextBuffer > MayaFlux::Portal::Text::press | ( | std::string_view | text, |
| const PressParams & | params = {} |
||
| ) |
Composite a UTF-8 string into a new TextBuffer.
The returned TextBuffer has width == params.render_bounds.x and height equal to either the explicit params.budget_h or the heuristic initial allocation, whichever is larger than the content height.
| text | UTF-8 string to composite. |
| params | Construction parameters. Default produces a growing buffer at 1280x720 render bounds using the default atlas. |
Definition at line 234 of file InkPress.cpp.
References MayaFlux::Journal::API, MayaFlux::Portal::Text::PressParams::atlas, MayaFlux::Portal::Text::PressParams::budget_h, MayaFlux::Portal::Text::PressParams::color, MayaFlux::Portal::Text::GlyphAtlas::line_height(), MF_WARN, MayaFlux::Journal::Portal, and MayaFlux::Portal::Text::PressParams::render_bounds.
Here is the call graph for this function: