Text Rendering¶
TachyPy offers multiple text paths depending on precision and dependency needs.
Text class¶
Text is TachyPy’s polished system-font renderer. It is the friendly public
name for GLSystemText and uses FreeType + HarfBuzz when available, with an
OpenGL bitmap fallback.
OpenGL text renderers¶
GLText: bitmap glyph renderer in pure OpenGL.GLTextSDF: signed-distance-field renderer for smoother scaling.GLSystemText: explicit backward-compatible name forText. You can pass a family name, comma-separated fallback list, or a direct font-file path.
The OpenGL renderers are backend-independent and do not require
pygame.font.
Recommended usage¶
Use
Textfor high-quality instruction screens and overlays.Use
GLSystemTextonly when you want the explicit historical class name.Use
GLTextSDFwhen scalable text quality matters and shaping is simple.The old Pillow/pygame texture-backed constructor is backbenched as
tachypy.text.LegacyTextfor compatibility.