title: java add text inside circle image
body: <p>I have that image:</p>
  
  <p><a href="https://i.stack.imgur.com/zizrr.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zizrr.png" alt="enter image description here"></a></p>
  
  <p>And I need to add text to image, so I want to write method that recieved 2 strings and add them to image, for example:</p>
  
  <pre><code>addText(String str, String str2){...};
  </code></pre>
  
  <p>first string always be 3 chars lenth
  second string can be from 1 to 20 chars length</p>
  
  <p>addText("str", "secondstr");</p>
  
  <p>And as result I want to recieve base64 png image string looking like that:</p>
  
  <p><a href="https://i.stack.imgur.com/OdtJo.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/OdtJo.png" alt="enter image description here"></a></p>
  
  <p>The main problem is how to write text in a 'circle format'? I need to change Y coordinate of each char what I write?</p>
  
  <p><strong>UPDATE1:</strong>
  Explored link <a href="http://www.java2s.com/Code/Java/2D-Graphics-GUI/Drawtextalongacurve.htm" rel="nofollow noreferrer">http://www.java2s.com/Code/Java/2D-Graphics-GUI/Drawtextalongacurve.htm</a>, but text always draws from left side, how I can move them to center of my circle?</p>