Change text rendering.

Fixed a bug in text color opacity handling and slightly tweaked the
way x, y, dx and dy attributes are handled.