Crate fontstash[][src]

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

FonsTextIter

Iterator of text quads

FontIx

Font index

FontStash

Shared ownership of font stash

Enums

ErrorCode

Error code supplied to ErrorCallback

Flags
FonsError

Traits

Renderer

Set of callbacks

Functions

set_error_callback

Type Definitions

ErrorCallback

The error argument is actually ErrorCode

FonsQuad

Quadliteral

Result