Manimpango Reference

Text Attributes

manimpango.attributes.TextAttribute([...])

TextAttribute defines the properties/attributes of the text within a specific range of the text.

Font Description

manimpango.fonts.FontDescription([family, ...])

A FontDescription describes a font.

manimpango.fonts.enums

Contains Enums which defines text properties from Pango.

Layout

manimpango.Layout([text, markup, font_desc, ...])

A Layout class represents an entire paragraph of text.

Renderers

manimpango.renderer.SVGRenderer

SVGRenderer is a renderer which renders the Layout to an SVG file.

manimpango.renderer.ImageRenderer

ImageRenderer is a renderer which renders the Layout to an image buffer.

Exceptions

manimpango.exceptions.MarkupParseError

MarkupParseError is raised when the markup passed in invalid.

Utilities

manimpango.register_font

This function registers the font file using fontconfig so that it is available for use by Pango.

manimpango.unregister_font

This function unregisters(removes) the font file using fontconfig.

manimpango.list_fonts

Lists the fonts available to Pango.

Deprecated API

manimpango.TextSetting(start, end, font, ...)

Formatting for slices of a manim.mobject.svg.text_mobject.Text object.

manimpango.PangoUtils()

manimpango.text2svg

Render an SVG file from a manim.mobject.svg.text_mobject.Text object.

manimpango.MarkupUtils()