ugly hacks to accomodate Apple's buggy AWT implementation
[org.ibex.core.git] / src / org / ibex / core / Box.java
index 0ccd421..8696839 100644 (file)
@@ -60,11 +60,7 @@ public final class Box extends JS.Obj implements Callable {
     // FIXME memory leak
     static Basket.Map boxToCursor = new Basket.Hash(500, 3);
 
-    static final Font DEFAULT_FONT;
-    static {
-        try { DEFAULT_FONT = Font.getFont((JS)Main.builtin.get(JSU.S("fonts/vera/Vera.ttf")), 10); }
-        catch(JSExn e) { throw new Error("Error loading default font: " + e); }
-    }
+    public static final Font DEFAULT_FONT = Font.getFont(Main.vera, 10);
 
 
     // Flags //////////////////////////////////////////////////////////////////////
@@ -449,7 +445,6 @@ public final class Box extends JS.Obj implements Callable {
     
     
     // Methods to implement org.ibex.js.JS //////////////////////////////////////
-
   
     public JS call(JS method, JS[] args) throws JSExn {
         switch (args.length) {