Hi, I have this code here that works fine offline, but fails online because of security IO issues.
1
| font = Font.createFont(Font.TRUETYPE_FONT,new File("font.ttf")).deriveFont(20f); |
I think the problem is that it is trying to load the font from the user's file system instead of from the server. How can I fix this?
thanks

try putting the font in the jar then using getClass().getClassLoader().getResourceAsStream( ... ) and passing the stream into createFont instead. the accesscontrolcontext created by createFont with an input stream should have temp folder write permission.
HTH
- David