Android 4.2.1 wrong character kerning (spacing)

Workaround, that I’m currently using:

scalePaint.setTextSize(1.5f);

then, in onDraw method:

canvas.save();
canvas.scale(0.01f, 0.01f);
canvas.drawText(""+i, 0.5f*100, 0.8f*100, scalePaint);                  
canvas.restore();

As you can see, I’m rescaling back the position of the text, so it’s where it’s supposed to be.

Leave a Comment