/*
 * Created on Dec 22, 2003
 *
 * To change the template for this generated file go to
 * Window&gt;Preferences&gt;Java&gt;Code Generation&gt;Code and Comments
 */

import java.awt.*;
import javax.swing.JApplet;

/**
 * @author Ivar
 *
 * To change the template for this generated type comment go to
 * Window&gt;Preferences&gt;Java&gt;Code Generation&gt;Code and Comments
 */
public class testFont extends JApplet
{
	
	public void paint(Graphics g)
	{
		Font font8  = new Font("SansSerif",Font.PLAIN,8);
		Font font10 = new Font("SansSerif",Font.PLAIN,10);
		Font font12 = new Font("SansSerif",Font.PLAIN,12);
		Font font14 = new Font("SansSerif",Font.PLAIN,14);
		
	//	((Graphics2D)g).setRenderingHint(RenderingHints.KEY_ANTIALIASING,RenderingHints.VALUE_ANTIALIAS_ON);
	
		g.setFont(font12);
		FontMetrics fm = g.getFontMetrics();
		g.drawString("height=" + fm.getHeight() + " acent=" + fm.getMaxAscent() + " decent=" + fm.getMaxDescent() + " leading=" + fm.getLeading() + " advance=" + fm.getMaxAdvance(),10,120);
		
	/*	g.setFont(font8);
		g.drawString("Bar1 Item6 j font=8 height=" + g.getFontMetrics().getHeight(),10,10);
		
		g.setFont(font10);
		g.drawString("Bar1 Item6 j font=10 height=" + g.getFontMetrics().getHeight(),10,24);
		
		g.setFont(font12);
		g.drawString("Bar1 Item6 j font=12 height=" + g.getFontMetrics().getHeight(),10,50);
		
		g.setFont(font14);
		g.drawString("Bar1 Item6 j font=14 height=" + g.getFontMetrics().getHeight(),10,80);
		
		g.setFont(this.getFont());
		g.drawString("Bar1 Item6 j font=Default height=" + g.getFontMetrics().getHeight(),10,120);*/
	}

}
