[−][src]Crate fontstash
Wrapper of fontstash
Custom renderer
fontstash-rs can be used with any graphics API, but it doesn't contain a default renderer.
You can pull FONSquads via FonsTextIter and batch them to make draw
calls. The original fontstash had callback-based drawing, but it was excluded from this crate.
Multi line text
Note that fontstash-rs doesn't handle multiple lines. You have to draw or measure text line by
line by yourself.
TODOs
- support state push/pop
Re-exports
pub use fontstash_sys as sys; |
Structs
| FonsTextIter | Iterator of text used with |
| FontIx | |
| FontStash | Font stash |
Enums
| Align | |
| ErrorCode | Error code supplied to [ |
| Flags | |
| FonsError | |
| c_void | Equivalent to C's |
Traits
| Renderer | Set of callbacks |
Functions
| set_error_callback |
Type Definitions
| ErrorCallback | The |
| Result | |
| c_int | Equivalent to C's |
| c_uchar | Equivalent to C's |