TextNode#
- class TextNode(*args, **kwargs)#
Superclasses: RenderNode
A render node drawing a set of glyphs.
Constructors#
- class TextNode
- classmethod new(font: Font, glyphs: GlyphString, color: RGBA, offset: Point) TextNode | None #
Creates a render node that renders the given glyphs.
Note that
color
may not be used if the font contains color glyphs.- Parameters:
font – the
PangoFont
containing the glyphsglyphs – the
PangoGlyphString
to rendercolor – the foreground color to render with
offset – offset of the baseline