title: Font.createFont leaves files in temp directory
body: <p>The code below does its work but leaves copies of the font file in the temp directory each time it is run. These files are named <em>+~JF7154903081130224445.tmp</em> where the number seems random for each created file.</p>
  
  <pre><code>InputStream fontStream = this.getClass().getResourceAsStream("handsean.ttf");
  Font baseFont = Font.createFont(Font.TRUETYPE_FONT, fontStream);
  fontStream.close();
  </code></pre>
  
  <p>I have found years-old discussions in forums at sun.com and other resources on the web where this is recognized as a bug in JDK, where upgrading from 1.5.0_06 to 1.5.0_08 would solve the problem; however, the version I am using is a later version (1.6.0_13).</p>
  
  <p>I tried solving the problem by deleting the files after the font related operations are finished, but the files are locked at that time.
  The files can only be deleted after the web application has stopped.</p>
  
  <p>Does anybody have a solution to this?</p>