LayoutResult lay_out(std::string_view text, GlyphAtlas &atlas, float pen_x, float pen_y, uint32_t wrap_w)
Lay out a UTF-8 string into a sequence of screen-space quads.
float uv_y1
Bottom-right UV in atlas space.
float uv_y0
Top-left UV in atlas space.
float y1
Bottom-right pixel position.
uint32_t codepoint
Unicode codepoint that produced this quad.
Screen-space quad for one rasterized glyph.
std::vector< GlyphQuad > quads
Result of lay_out(), carrying the quads and the final pen position.