Struct rokol::fons::FontTextureImpl [−][src]
pub struct FontTextureImpl { /* fields omitted */ }
Expand description
We have to give fixed memory location to FontTextureImpl
so that fontstash
(a C library) can
call callback methods.
Implementations
Interface
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
Renderer implementation
Return 1
to represent success.
Creates font texture
Try to double the texture size when the atlas is full
Create new texture Read more