Draw arbitrary polygons instead of certain characters when painting a String
<p>I need to draw a text line where some specified characters would be replaced by arbitrary polygons. These polygons must be painted with Graphics directly using <a href="http://docs.oracle.com/javase/7/docs/api/java/awt/Graphics.html#drawPolygon%28int%5B%5D,%20int%5B%5D,%20int%29" rel="nofollow">drawPolygon</a>. method. While Unicode contains a range of graphical symbols, they are not appropriate for this task.</p>

<p>I was wondering if it was possible to replace a character with a polygon, in any instance of that character's occurrence in a string?
For example, if I typed-in the word 'Holly' and hit 'enter', the first letter would be replaced by the polygon.
If I then went to type the word 'thistle', the polygon's new position would be in place of the second letter?</p>

<p>Any help/guidance will be greatly appreciated.</p>
