4 releases

0.1.6 Mar 25, 2021
0.1.5 Feb 12, 2021
0.1.3 Jan 12, 2021
0.1.2 Jan 12, 2021

#1595 in Game dev


Used in rokol

MIT license

78KB
387 lines

fontstash-rs

Wrapper of the fork of fontstash


lib.rs:

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

Dependencies

~0–2MB
~40K SLoC