Changes to check actual length of strings including unicode greek etc avoiding legend box containing greek etc width being wildly overestimated.