I was looking at the graphics class and there doesn't seem to be a means to get the width of a single text line, esp. if you change the size of the font.
i.e.
g.setFont( new Font("Times New Roman" );
g.setFont( 36.f );
g.drawSingleLineText( "Hello TimesNewRoman", 30, 30 );
The problem i've found is that getStringWidth(" Hello TimesNewRoman") gets the width as tho the font is set to the initial size when loading in a new font, which I guess is 14. it doesn't take into account the setFont( 36.f ).
i did that with my embedded ttf file (inside BinaryData). it looks like the font itself has a bunch of white space around each character. that's what was causing me problems, as the results didn't look right whenever I tried to place stuff relative to a g.drawSingleLineText()'s position. Thanks for clarifying!