Context
The following code produces a "nice" looking "Hello World"
graphics.drawString("Hello World", 30, 30);
Now, if instead, I draw each character string, and manually advance by fontMetrics.getCharWidth(c)
then I end up with a narrow/crowded looking "Hello World"
.
Questions
Why does this happen? What else do I need to add to, besides each character's "advance", to ensure that the characters are well spaced?
which method in Graphics do you use to render char ? here is the code that I wrote and it runs perfectly and results of both rendering methods are exactly the same, would you please share that part of your code ?
}