Fix for scaling of text and offsets