Page 1 of 1
Java Question (Drawing Strings)
Posted: Mon Apr 12, 2010 2:20 pm
by ajtgarber
Why does Java draw the String at some weird offset every time I try to draw a string through Graphics.drawString? How can I get around it?
Re: Java Question (Drawing Strings)
Posted: Mon Apr 12, 2010 6:45 pm
by Live-Dimension
Define 'some weird offset'? Are you taking into effect the font's spacing and such?
Re: Java Question (Drawing Strings)
Posted: Mon Apr 12, 2010 8:09 pm
by ajtgarber
Sorry, not to sound stupid or anything, but how would the fonts spacing effect where the text is placed?
Re: Java Question (Drawing Strings)
Posted: Mon Apr 12, 2010 9:42 pm
by Live-Dimension
Well, it might not, but you haven't said how big the offset is. A few pixels out could definitely do with font spacing, size, etc. 50000 pixels generally isn't anything to do with the font, but more of a programming error :P