title: Java Graphics2D drawString wrap text
body: <p>How do you go about wrapping strings using Graphics2D drawString. </p>
  
  <p>Saw some examples like this 
  <a href="https://stackoverflow.com/questions/400566/full-justification-with-a-java-graphics-drawstring-replacement">drawstring replacement</a></p>
  
  <p>But this does not work since I have a vertically aligned text and the fontmetrics height from graphics  gives me 0.</p>