Implement rescale-2-resize for text

[#73648682]