• Here's a method to draw some text with whatever adjustment to the spacing you want:

    function drawStringWithSpacing(text, x, y, spacing) {
      for (var char of text) {
        g.drawString(char, x, y);
        x += g.stringWidth(char) + spacing;
  • You can make the letters overlap by passing a negative spacing into the function I posted:

    drawStringWithSpacing("foo", 0, 0, -1);

Avatar for Mrbbp @Mrbbp started