Function sdl2_ttf::init
[−]
[src]
pub fn init() -> Result<Sdl2TtfContext, Error>
Initialize the truetype font API and returns a context manager which will clean up the library once it goes out of scope. You can't really use it, but keep the reference alive :)