forked from: TextField_setTextFormat

