Struct rokol::fons::FontStash [−][src]
pub struct FontStash { /* fields omitted */ }
Expand description
Shared ownership of font stash
Hack for creation
Renderer
needs fixed memory position so that fontstash::sys
can call callback methods
of it.
- Create
Renderer
in aBox
withFontStash
beinguninitialized
- Call
FontStash::init_mut
to initializeFontStash
Implementations
Hack for creation
Font storage. Each font is keyed with name
string.
Atlas
Creates fontstash atlas size copying the previous data
States
Horizontal space between characters?
Sets alignment of quadliterals returned with FontStash::text_iter
Texture
State stack
Draw
Measure
Returns [left_x, top_y, right_x, bottom_y]
. Note that it doesn’t handle multiple lines
of text. You need custom layer for multi-line text!