Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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.

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)