[Bug 39941] Rendering of rotated text is ugly