# Class: l2dtext

allows text to be rendered on screen

## Hierarchy

    o-+ l2dnode
      o-+ l2dtext

## Interfaces:

- rendersurface

## Methods:

### Method overview:

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

new (string name,string text,[fontset])
  returns: (l2dtext)
  returns a new l2dtext
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.
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, deleteall, firstchild, get, getroot, l3dtarget, l3dtargetoff, local2world, new, parent, pos, rotcenter, rotdeg, rotrad, scale, scissor, scissorlocal, scissorparent, scissorsize, scissorstart, sortid, swapinchildlist, world2local