Rasterizes and packs glyphs from a FontFace into a TextureContainer.
const LayoutResult & layout() const noexcept
The layout of the current text, in pixels with y down.
const PressParams & params() const noexcept
const std::string & text() const noexcept
One string laid out as glyph quads, ready to draw as vertices.
size_t index_at(std::string_view text, const LayoutResult &layout, GlyphAtlas &atlas, float x, float y, float pen_x, float pen_y, uint32_t wrap_w, uint32_t tab_width)
Byte offset of the codepoint boundary nearest a screen-space point.
Linear map from layout pixels to whatever space the vertices are drawn in.
Result of lay_out(), carrying the quads and the final pen position.
Construction parameters for press().