An open API service indexing awesome lists of open source software.

https://github.com/bodoni/text

Text toolbox
https://github.com/bodoni/text

Last synced: 12 months ago
JSON representation

Text toolbox

Awesome Lists containing this project

README

          

# Text [![Version][version-img]][version-url] [![Status][status-img]][status-url]

The package provides a text toolbox.

## [Documentation][documentation]

## Example

```rust
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](LICENSE.md).

[documentation]: https://docs.rs/text
[status-img]: https://travis-ci.org/bodoni/text.svg?branch=master
[status-url]: https://travis-ci.org/bodoni/text
[version-img]: https://img.shields.io/crates/v/text.svg
[version-url]: https://crates.io/crates/text