home *** CD-ROM | disk | FTP | other *** search
/ S283 Planetary Science &n…he Search for Life DVD 2 / DVD-ROM.iso / install / jre1_3 / lib / rt.jar / sun / java2d / SunGraphicsEnvironment$1.class (.txt) < prev    next >
Encoding:
Java Class File  |  1979-12-31  |  1.0 KB  |  37 lines

  1. package sun.java2d;
  2.  
  3. import java.security.PrivilegedAction;
  4. import sun.awt.font.NativeFontWrapper;
  5.  
  6. class SunGraphicsEnvironment$1 implements PrivilegedAction {
  7.    // $FF: synthetic field
  8.    private final SunGraphicsEnvironment this$0;
  9.  
  10.    SunGraphicsEnvironment$1(SunGraphicsEnvironment var1) {
  11.       this.this$0 = var1;
  12.    }
  13.  
  14.    public Object run() {
  15.       this.this$0.fontPath = System.getProperty("java.awt.fonts");
  16.       if (this.this$0.fontPath.length() == 0) {
  17.          boolean var1 = false;
  18.          String var2 = System.getProperty("sun.java2d.noType1Font");
  19.          if (var2 == null) {
  20.             var1 = NativeFontWrapper.getType1FontVar();
  21.          }
  22.  
  23.          if ("true".equals(var2)) {
  24.             var1 = true;
  25.          }
  26.  
  27.          this.this$0.fontPath = NativeFontWrapper.getFontPath(var1);
  28.          SunGraphicsEnvironment.access$000(this.this$0);
  29.          this.this$0.loadNativeFonts = true;
  30.       }
  31.  
  32.       SunGraphicsEnvironment.access$100(this.this$0);
  33.       this.this$0.initCompositeFonts();
  34.       return null;
  35.    }
  36. }
  37.