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 DistanceFieldGlyphCache
Glyph cache with distance field rendering
class FontManager
Manager for AbstractFont plugin instances
class GlyphCache
Glyph cache
class Renderer2D
2D text renderer

Enums

class Alignment: LINE_LEFT = 0 LINE_CENTER = 1 LINE_RIGHT = 2 MIDDLE_LEFT = 8 MIDDLE_CENTER = 9 MIDDLE_RIGHT = 10 TOP_LEFT = 12 TOP_CENTER = 13 TOP_RIGHT = 14 LINE_CENTER_INTEGRAL = 17 MIDDLE_LEFT_INTEGRAL = 24 MIDDLE_CENTER_INTEGRAL = 25 MIDDLE_RIGHT_INTEGRAL = 26
Text rendering alignment