true type fonts - Java TrueTypeFont -
i'd use truetypefont class sun.font.truetypefont package in applet, eclipse keeps complaining constructor not being visible:
import sun.font.truetypefont; . . . new truetypefont("a", new object(), 1, false); yields:
- constructor truetypefont(string, object, int, boolean) not visible is there way fix this? there way cast font class truetypefont? need data provided methods of truetypefont.
you have multiple problems there:
sun.font.truetypefontimplementation class shouldn't playing around with.- it's constructor "package private" (default access) means can't access package (which eclipse happens telling you).
- even if access it, [untrusted] applet cannot access
sun.*classes (controlledpackage.accesssecurity property).
Comments
Post a Comment