Вот код который выводит текст:
Tproto.DrawText = function(c,xoff,yoff) {
var t = this.tc, x = this.x, y = this.y, w, h, s = this.sc, o = this.outline;
c.globalAlpha = this.alpha;
c.setTransform(s,0,0,s,0,0);
c.fillStyle = 'green';
t.shadow && this.SetShadowColour(c,t.shadow,this.alpha);
c.font = this.font;
w = this.w1 * s;
h = this.h * s;
x += 1 + (xoff / s) - (w / 2);
y += 1 + (yoff / s) - (h / 2);
c.fillText(this.name, x, y);
o.Update(x, y, this.w1, this.h, s, this.p3d);
return o.Active(c, t.mx, t.my) ? o : null;
};