Skip to main content

Crate plotine_text

Crate plotine_text 

Source
Expand description

Text measurement and rasterization backed by cosmic-text.

The concrete engine is hidden behind TextEngine so M0 can swap cosmic-text for parley later without touching chart layout code.

Structs§

GlyphImage
Rasterized glyph mask ready for backends to blit.
TextEngine
Text measurement + shaping facade over cosmic-text.

Enums§

GlyphContent

Constants§

EMBEDDED_FONT
Embedded DejaVu Sans bytes (shared with PDF/SVG font databases).
EMBEDDED_FONT_OBLIQUE
Embedded DejaVu Sans Oblique for mathtext italic (matplotlib math default).
FONT_FAMILY
Family name registered for EMBEDDED_FONT.

Functions§

register_font_data
Load font bytes into the shared text engine.
register_font_file
Load a font file (.ttf / .otf / .ttc) into the shared text engine.
registered_families
Family names of fonts registered via register_font_file / register_font_data.
registered_font_data
Font bytes for PDF / other backends that need to embed registered faces.
svg_font_family_list
CSS font-family list: DejaVu first, then registered faces, then generics.