https://github.com/bodoni/text
Text toolbox
https://github.com/bodoni/text
Last synced: 12 months ago
JSON representation
Text toolbox
- Host: GitHub
- URL: https://github.com/bodoni/text
- Owner: bodoni
- License: other
- Created: 2015-08-30T06:49:53.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2016-10-28T06:46:05.000Z (over 9 years ago)
- Last Synced: 2025-06-05T04:17:22.966Z (about 1 year ago)
- Language: Rust
- Homepage:
- Size: 157 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
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