libcosmic/examples/text/README.md

15 lines
348 B
Markdown
Raw Normal View History

2022-10-03 14:00:42 -06:00
# Text
An example showcasing multi-line text shaping and rendering.
2022-10-03 11:45:46 -06:00
All the example code is located in the __[`main`](src/main.rs)__ file.
You can run it with `cargo run`:
```
2022-10-03 14:00:42 -06:00
cargo run --package text --release
```
To test with a monospace font, you can run it with the `mono` feature:
```
cargo run --package text --features mono --release
2022-10-03 11:45:46 -06:00
```