title: j2me drawChar abnormal character spacing?
body: <p>I write some code to draw a text on a j2me canvas without using drawString.<br>
  For some reasons I can't use drawString method.<br>
  So, when I run my program, I deal with abnormal character spacing.<br>
  Please help me to solve the problem. This is my code:</p>
  
  <pre><code>public void paint(Graphics g) {
          ...
          String str = ... ;
          int x0 = 10;
          int y0 = getHeight() - 50;
          Font f = g.getFont();
          int charWidth = 0;
          for (int i = 0; i &lt; str.length(); i++) {
              char ch = str.charAt(i);
              charWidth = f.charWidth(ch);
              x0 += charWidth;
              g.drawChar(ch, x0, y0, 0);            
          }
          ...
  }
  </code></pre>