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.DistanceFieldGlyphCache class

Glyph cache with distance field rendering

Special methods

def __init__(self, original_size: Vector2i, size: Vector2i, radius: int) -> None
Constructor

Properties

padding: Vector2i get
Glyph padding
size: Vector3i get
Glyph cache texture size
texture: gl.Texture2D get
Cache texture