/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

import java.awt.Font;
import java.awt.font.FontRenderContext;
import java.awt.geom.Rectangle2D;

/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
	public static void main(String[] args) throws Exception{
		try{
		System.out.println("fnt manager: "+System.getProperty("sun.font.fontmanager"));
		System.out.flush();
        final Font font = new Font("tahoma", 0, 10).deriveFont(10f);
System.out.println(font);
        Rectangle2D _rd = font.getStringBounds(
    "Text",
    0,
    4,
    new FontRenderContext(null, true, true)
);
System.out.println(_rd
        );
    
	}catch(Throwable wth){
		wth.printStackTrace();
		
	}
}
}