#text-layout #font #toolbox

text

The package provides a text toolbox

4 releases

Uses old Rust 2015

0.0.4 Oct 28, 2016
0.0.3 May 16, 2016
0.0.2 May 16, 2016
0.0.1 Aug 30, 2015

#20 in #text-layout

Apache-2.0/MIT

165KB

Text Version Status

The package provides a text toolbox.

Documentation

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.


lib.rs:

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();

Dependencies

~450KB
~11K SLoC

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy