apply shift to text too if we are clipping

does not clip exactly the same as what the PNGs clip to at the document bounds because of text metrics

This is for adobe-photoshop/generator-assets#315

(cherry picked from commit 911f367acb03d7898a0abe798229d7ef4c8d3878)