K
kvnsmnsn
I've noticed that when I call "drawString()" without setting the font
first, the default font prints different widths for different charac-
ters. So I took a look at the "Font" class to try to figure out how
to call "setFont" to a font that has an equal width for each character
it prints. The API shows a contructor for "Font",
<Font ( String name, int style, int size)>, but you need to know what
string to put into <name>. Anybody have any idea how to figure out
the string value I need to put into this constructor to get it to use
a font that has an equal width for each character in the font? Any
information on this would be greatly appreciated.
---Kevin Simonson
"You'll never get to heaven, or even to LA,
if you don't believe there's a way."
from _Why Not_
first, the default font prints different widths for different charac-
ters. So I took a look at the "Font" class to try to figure out how
to call "setFont" to a font that has an equal width for each character
it prints. The API shows a contructor for "Font",
<Font ( String name, int style, int size)>, but you need to know what
string to put into <name>. Anybody have any idea how to figure out
the string value I need to put into this constructor to get it to use
a font that has an equal width for each character in the font? Any
information on this would be greatly appreciated.
---Kevin Simonson
"You'll never get to heaven, or even to LA,
if you don't believe there's a way."
from _Why Not_