Text attributes in exported SVG are fixed.
The colors of the texts in exported SVG were not well fixed.
The attribute setting function is split into two functions:
one for the shapes, and one for the text.