在WEB上生成图片文字时,用以下方式定义了从网上下载的字体:
File fontfile = new File("d:\\webjsp\\font.ttf");
FileInputStream fi = new FileInputStream(fontfile);
Font newfont = Font.createFont(Font.TRUETYPE_FONT, fi);
newfont = newfont.deriveFont(Font.BOLD, 100);
然后通过setFont就可以用了但在createFont时会在Tomcat目录下留下一个跟font.ttf一样大小的tmp临时文件
请问在createFont时不产生这个临时文件?