Function sdl2::ttf::init

source · []
pub fn init() -> Result<Sdl2TtfContext, InitError>
Expand description

Initializes the truetype font API and returns a context manager which will clean up the library once it goes out of scope.