text2d overlay

 Function Name  Parameter  Return  Explain
getColor None dword  
setColor dword None  
getText None string if the Encoding is UNICODE, returns a UTF-16 (wide character) string, otherwise returns ANSI string.
setText string None  
getHorzScale None number  
getVertScale None number  
setScale number horz, vert None  
getEncoding None number encoding returns:
TEXT_ENCODING_ANSI
or
TEXT_ENCODING_UNICODE
setEncoding number encoding None  

Example:

local s = text.getText()

text.setEncoding(TEXT_ENCODING_UNICODE)
text.setText( AnsiToUnicode(s) )

s = text.getText()
text.setEncoding(TEXT_ENCODING_ANSI)
text.setText( UnicodeToAnsi(s) )