Function sdl2_ttf::init [] [src]

pub fn init() -> Result<Sdl2TtfContextError>

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 :)