Created attachment 11314 [details]
use for the above demo
gswin64c -sPAPERSIZE=a4 -sDEVICE=eps2write -dBATCH -dNOPAUSE -q -sOutputFile=testc.eps testc.ps
Using GS 9.15, the left and right margins of the calculated bounding box are not quite right. They appear to be on the baseline of the text rather than its outer limits. This problem does not occur with non-rotated text. Is this my error or yours?
It worked properly with the deprecated epswrite in GS 9.14.
I believe commit c98c38c8b9912fc3510ef2e1e53c3ff1837b0519 fixes this problem. I don't remember why the clamping to the text enumerator origin was done in the first place, it doesn't make any sense to me now. However this may need more work in the future.
In the meantime, this should make rotated text contribute its 'height' to the bounding box appropriately.