A couple of funciton parameters in sdl2.ttf were declared as long rather than c_long as they should have been.