Rust-SDL2_ttf
Rust bindings for SDL2_ttf.
Overview
Rust-SDL2_ttf is a library for talking to the new SDL2_ttf library from Rust.
Rust-SDL2_ttf uses the MIT licence.
Requirements
- Rust-SDL2
- SDL2_ttf development libraries
- Rust master or nightly
Installation
Place the following into your project's Cargo.toml file:
[]
= "0.13.0"
Or, to use the newest rust-sdl2_ttf, reference the repository:
[]
= "https://github.com/andelf/rust-sdl2_ttf"
You can also just clone and build the library yourself:
# TODO: OR if you are using the mac framework version
If you're not using Cargo, you can compile the library manually:
Demo
A simple demo that prints out a string given a font is included:
|| )