sdl2.ext.ttf - Rendering Text With TrueType FontsΒΆ
The sdl2.ext.ttf
module provides the FontTTF
class,
which provides a friendly and Pythonic API for font rendering based around
the SDL_ttf library. SDL_ttf can be installed as a Python dependency
with pysdl2-dll
on platforms that support it).
Additionally, this module provides the deprecated FontManager
class, which provides a different (and less featureful) API for rendering text
using SDL_ttf.