I\'m trying to write application which need to draw many strings using Graphics2D class in Java. I need to get sizes of each String object (to calculate exact p
Graphics2D
for historical sake,here's how I think he did it originally (jruby java pseucodoe)
font = UIManager.getFont("Label.font") frc = java.awt.font.FontRenderContext.new(font.transform, true, true) textLayout = java.awt.font.TextLayout.new(text, font, frc) textLayout.bounds.width