Crate fontstash[−][src]
Wrapper of fontstash (actually a fork of it)
Custom renderer
fontstash
is render-agnonstic. You can pull FonsQuad
s via FonsTextIter
and batch them to
make draw calls.
Multiple lines of text
fontstash-rs
doesn’t handle multiple lines of text out of the box. You would need some layer to
draw or measure them.
TODOs
- support state push/pop
Re-exports
pub use fontstash_sys as sys; |
Structs
Align | Alignment of each quadliteral returned by |
FonsTextIter | Iterator of text quads |
FontIx | Font index |
FontStash | Shared ownership of font stash |
Enums
ErrorCode | Error code supplied to |
Flags | |
FonsError |
Traits
Renderer | Set of callbacks |
Functions
set_error_callback |
Type Definitions
ErrorCallback | The |
FonsQuad | Quadliteral |
Result |