Java Question (Drawing Strings)
Moderator: Coders of Rage
Java Question (Drawing Strings)
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?
-
- Chaos Rift Junior
- Posts: 345
- Joined: Tue Jan 12, 2010 7:23 pm
- Favorite Gaming Platforms: PC - Windows 7
- Programming Language of Choice: c++;haxe
- Contact:
Re: Java Question (Drawing Strings)
Define 'some weird offset'? Are you taking into effect the font's spacing and such?
Re: Java Question (Drawing Strings)
Sorry, not to sound stupid or anything, but how would the fonts spacing effect where the text is placed?
-
- Chaos Rift Junior
- Posts: 345
- Joined: Tue Jan 12, 2010 7:23 pm
- Favorite Gaming Platforms: PC - Windows 7
- Programming Language of Choice: c++;haxe
- Contact:
Re: Java Question (Drawing Strings)
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