Fonterator
Fonterator is a pure Rust font loader. When you want to render text, fonterator gives you an
iterator over footile PathOp
s, which you can easily pass
right into footile.
Simple Example
In Cargo.toml,
[]
= "0.3.0"
In main.rs,
extern crate fonterator;
extern crate footile;
use FontChain;
use ;
Features
- Load TTF fonts and font collections.
- Load some OTF fonts and font collections.
- Automatic kerning and font layout.
- Horizontal and vertical text layout.
- Left-to-right and right-to-left text layout.
- Use fallback fonts if a character is not available from one font.
- Optional multilingual monospace (CJK is rendered exactly twice the width of Latin).
TODO
- Support OpenType fonts that aren't TrueType (Supporting cubic bezier curves).
- Support ligatures (‽,æ etc.).
- Support other TrueType variants.