Crate text

Source
Expand description

Text toolbox.

§Example

extern crate font;
extern crate text;

use font::File;
use text::Layout;

let path = "SourceSerifPro-Regular.otf";
let font = File::open(path).unwrap().fonts.remove(0);

let mut layout = Layout::new(font);
let text = layout.draw("The quick brown fox jumps over the lazy dog.").unwrap();

Structs§

Type Aliases§