While displaying a font on an applet, is it necessary for the system running the browser to have the font or is it carried across from the web server where the applet resides?

John Zukowski

Prior to the 1.3 release, the font was required to be on the user's platform and their font.properties file had to be modified so you could use it. Starting with 1.3, you can call public static Font createFont(int fontFormat, InputStream fontStream) throws FontFormatException, IOException which lets you pass true type fonts across an input stream.

However, Font.createFont() uses a working file to create the new font. And, untrusted applets have no permission to create the working file. Consider creating the Font in a servlet and serializing it back to the applet.