private void changeFont(String filename,Graphics2D g,int txtsize) 
	 {
		
		 float size = new Float(txtsize);
		 try{
			 
			 Font font = Font.createFont(Font.TRUETYPE_FONT,new File(filename)).deriveFont(size);
			 g.setFont(font);
			 
		 } catch (IOException e) {
			 
			 System.out.print(e);
		 }catch (FontFormatException e){
			 System.out.print(e);
		 }
		 
	 }