Welcome to Python-flavored Magnum! Please note that, while already being rather stable, this functionality is still considered experimental and some APIs might get changed without preserving full backwards compatibility.

magnum.text module

Text rendering

Classes

class AbstractFont
Interface for font plugins
class AbstractGlyphCache
Base for glyph caches
class DistanceFieldGlyphCacheGL
OpenGL glyph cache with distance field rendering
class FontManager
Manager for AbstractFont plugin instances
class GlyphCacheGL
OpenGL glyph cache
class Renderer2D
2D text renderer

Enums

class Alignment: LINE_LEFT = 0 LINE_CENTER = 1 LINE_RIGHT = 2 MIDDLE_LEFT = 32 MIDDLE_CENTER = 33 MIDDLE_RIGHT = 34 TOP_LEFT = 48 TOP_CENTER = 49 TOP_RIGHT = 50 LINE_CENTER_INTEGRAL = 65 MIDDLE_LEFT_INTEGRAL = 96 MIDDLE_CENTER_INTEGRAL = 97 MIDDLE_RIGHT_INTEGRAL = 98
Text rendering alignment