# Class: l3dtext

A text node

## Hierarchy

    o-+ l3dlist
      o-+ l3dnode
        o-+ l3dtext

## Interfaces:

- renderflag
- rendersurface

## Methods:

### Method overview:

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

new (string name,|l3dlayerid|,string text,[fontset])
  returns: ([l3dtext])
  creates new l3dtext
charatpos (l3dtext, 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 (l3dtext)
  returns: (float x,y,z)
  returns dimension of space it would take when printed
font (l3dtext,[texture])
  returns: ([texture])
  returns or sets font texture
fontset (l3dtext,[fontset])
  returns: ([fontset])
  returns or sets fontset.
posatchar (l3dtext, int pos)
  returns: (float x,y)
  returns the character's position offset. Behaviour undefined if pos>length of text.
size (l3dtext,[float])
  returns: ([float])
  returns or sets font size, default is 16
spacing (l3dtext,[float])
  returns: ([float])
  returns or sets font spacing, default is 16
tabwidth (l3dtext,[float])
  returns: (float)
  returns or sets tab width spacing, default is 0. 0 means spacing * 4 is used, otherwise values will be directly applied.
text (l3dtext,[string])
  returns: ([string])
  returns or sets text

## Inherited Methods:

### From l3dnode

cambox, camsphere, camvolumedelete, color, delete, isanimateable, lastframe, lightmap, lightmaptexmatrix, linkinterface, localmatrix, localpos, localrotaxis, localrotdeg, localrotquat, localrotrad, name, novistest, parent, parentbone, renderscale, rotationlock, setlayer, unlink, unparentbone, uselocal, uselookat, usemanualworld, visflag, worldmatrix, worldpos, worldrotaxis, worldrotdeg, worldrotquat, worldrotrad

### From l3dlist