Expand description
Wrapper of fontstash (actually a fork of it)
§Custom renderer
fontstash is render-agnonstic. You can pull FonsQuads 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
FontStash::text_iter - Fons
Text Iter - Iterator of text quads
- FontIx
- Font index
- Font
Stash - Shared ownership of font stash
Enums§
- Error
Code - Error code supplied to
ErrorCallback - Flags
- Fons
Error
Traits§
- Renderer
- Set of callbacks
Functions§
Type Aliases§
- Error
Callback - The
errorargument is actuallyErrorCode - Fons
Quad - Quadliteral
- Result