Module cocos.text

Text support

CocosNodes subclasses supporting text. They use a suitable pyglet text object to do the work. Functionality other that the one common to all cococsnodes, except 'opacity', is provided by the member 'element' , which is the underlying pyglet object.

Classes

  TextElement
Base class for all cocos text
  Label
Plain text support
  HTMLLabel
HTML formatted text label (supports a subset of HTML 4.01)
  PygletRichLabel
This is not a CocosNode - let instantiation be handled by RichLabel
  RichLabel
displays pyglet attributed (rich) text

Variables

  __package__ = 'cocos'