add bgcolor and fgcolor in text rendering