# Class: l2dtext

allows text to be rendered on screen

## Hierarchy

    o-+ l2dlist
      o-+ l2dnode
        o-+ l2dtext

## Interfaces:

- rendersurface

## Methods:

### Method overview:

- charatpos
- dimensions
- font
- fontset
- new
- posatchar
- size
- spacing
- text

new (string name,string text,[fontset])
  returns: (l2dtext)
  returns a new l2dtext
charatpos (l2dtext, float x, float y)
  returns: (boolean inside, int charpos)
  returns character index at given x,y. Returns true / false wether it x,y was inside or not.
dimensions (l2dtext)
  returns: (float x,y,z)
  returns dimension of space it would take when printed
font (l2dtext,[texture])
  returns: (texture)
  returns or sets font texture
fontset (l2dtext,[fontset])
  returns: (fontset)
  returns or sets fontset.
posatchar (l2dtext, int pos)
  returns: (float x,y)
  returns the character's position offset. Behaviour undefined if pos>length of text.
size (l2dtext,[float])
  returns: (float)
  returns or sets font size, default is 16
spacing (l2dtext,[float])
  returns: (float)
  returns or sets font spacing, default is 16
text (l2dtext,[string])
  returns: (string)
  returns or sets text

## Inherited Methods:

### From l2dnode

color, delete, firstchild, l3dtarget, l3dtargetoff, local2world, parent, pos, rotcenter, rotdeg, rotrad, scale, scissor, scissorlocal, scissorparent, scissorsize, scissorstart, sortid, swapinchildlist, world2local

### From l2dlist