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.2.0"
In main.rs,
extern crate fonterator;
extern crate footile;
use Font;
use ;
const FONT: & = include_bytes!;
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.
TODO
- Support OpenType formatted fonts that are not just TrueType fonts (OpenType is a superset of TrueType). Notably there is no support yet for cubic Bezier curves used in glyphs.
- Support ligatures of any kind (‽, etc.).
- Support some less common TrueType sub-formats.