//Delphi
UniSession.AddJS(unicanvas.JSName + '._cc_.fillText("'+text+'",'+left+','+top+');');
//C++
UnicodeString s = UnicodeString().sprintf(L"%s._cc_.fillText('%s',%d,%d);", unicanvas->JSName, text, left, top);
UniSession()->AddJS(s);
Of course, is better if you do some escaping of the text first, otherwise you will be open to injection