|
MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
|
| void MayaFlux::Nodes::GpuSync::GlyphGeometryNode::set_center | ( | std::optional< glm::vec2 > | center | ) |
Place the text block so its bounding box center falls on center.
Overrides the pen origin. The bounding box is computed from the total advance width and line height of the laid-out string. Takes effect on the next rebuild_outlines() or set_text() call. Pass std::nullopt to revert to pen-origin placement.
| center | Desired center position in the same coordinate space as the pen origin (pixels when using an ortho view transform). |
Definition at line 61 of file GlyphGeometryNode.cpp.