Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/seemk/sdl2_text
A Rust library to draw text in SDL2.
https://github.com/seemk/sdl2_text
Last synced: 22 days ago
JSON representation
A Rust library to draw text in SDL2.
- Host: GitHub
- URL: https://github.com/seemk/sdl2_text
- Owner: seemk
- Created: 2014-07-16T13:06:43.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-08-19T19:27:45.000Z (over 10 years ago)
- Last Synced: 2024-10-30T09:26:09.287Z (2 months ago)
- Language: Rust
- Homepage:
- Size: 418 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
SDL2_text
=========A simple Rust library to draw text in SDL2.
Requirements
------------* [rust-sdl2](https://github.com/AngryLawyer/rust-sdl2)
* [freetype-rs](https://github.com/PistonDevelopers/freetype-rs)Building
--------```
cargo build
make examples
```Notes
-----
Differs from SDL2_ttf by rendering the font to a texture atlas, handles newlines.An example using Arial font:
![](http://i.imgur.com/UMdQmal.png)