I'm trying to use the new createFont() method of Font in JDK 1.3 to load a TTF font in an applet.

Jason Burkert



I submitted a bug report to Sun regrading this and in reply I received this:

"Font.createFont uses a working file to create the new font. Since it is an applet there are many instances that it would not be able to create the working file."

So, generally, you can't use the Font.createFont() method in an applet that does not have permission to write to disk.

As a workaround, I successfully implemented a servlet that creates a Font object from a local TTF file, then serializes it to my applet.

0 Comments  (click to add your comment)
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



About | Sitemap | Contact