added getLastColor to TextFormat