home *** CD-ROM | disk | FTP | other *** search
- package sun.java2d;
-
- import java.security.PrivilegedAction;
- import sun.awt.font.NativeFontWrapper;
-
- class SunGraphicsEnvironment$2 implements PrivilegedAction {
- // $FF: synthetic field
- private final SunGraphicsEnvironment this$0;
-
- SunGraphicsEnvironment$2(SunGraphicsEnvironment var1) {
- this.this$0 = var1;
- }
-
- public Object run() {
- if (this.this$0.fontPath == null) {
- this.this$0.fontPath = System.getProperty("java.awt.fonts");
- if (this.this$0.fontPath.length() == 0) {
- boolean var1 = false;
- String var2 = System.getProperty("sun.java2d.noType1Font");
- if (var2 == null) {
- var1 = NativeFontWrapper.getType1FontVar();
- }
-
- if ("true".equals(var2)) {
- var1 = true;
- }
-
- this.this$0.fontPath = NativeFontWrapper.getFontPath(var1);
- SunGraphicsEnvironment.access$000(this.this$0);
- this.this$0.loadNativeFonts = true;
- }
- }
-
- boolean var3 = SunGraphicsEnvironment.access$200(this.this$0, this.this$0.fontPath);
- boolean var4 = false;
- if (this.this$0.loadNativeFonts) {
- var4 = this.this$0.registerNativeFonts();
- }
-
- if (!var3 && !var4) {
- System.out.println("\nNo fonts were found in '" + this.this$0.fontPath + "'.\n");
- System.exit(2);
- }
-
- SunGraphicsEnvironment.access$302(this.this$0, true);
- return null;
- }
- }
-