Source

pygame / doc / capi / sdlttf.rst

pygame2.sdlttf.base

The :mod:`pygame2.sdlttf.base` C API contains objects and functions for accessing TrueType font rendering on SDL surfaces.

Import

Include headers:

pygame2/pgsdlttf.h

Macros

PySDLFont_TTF

The PySDLFont_TTF object is used for rendering text to a :ctype:`PySDLSurface`.

Members

Functions