Struct rokol::fons::FontTexture [−][src]
pub struct FontTexture { /* fields omitted */ }
Expand description
Be sure to set alignment of the FontStash
to draw text as you want.
Implementations
Methods from Deref<Target = FontTextureImpl>
Copies the shared ownership of Fontstash Returns [x, y, w, h]
Call it every frame but only once
Methods from Deref<Target = FontStash>
Creates fontstash atlas size copying the previous data
Horizontal space between characters?
Sets alignment of quadliterals returned with FontStash::text_iter
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!
Trait Implementations
type Target = FontTextureImpl
type Target = FontTextureImpl
The resulting type after dereferencing.