Skip to content

bodoni/text

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Text Version Status

The package provides a 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();

Contribution

Your contribution is highly appreciated. Do not hesitate to open an issue or a pull request. Note that any contribution submitted for inclusion in the project will be licensed according to the terms given in LICENSE.md.

Releases

No releases published

Packages

No packages published

Languages