// 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 //////////////////////////////////////////////////////////////////////
// Methods to implement org.ibex.js.JS //////////////////////////////////////
-
public JS call(JS method, JS[] args) throws JSExn {
switch (args.length) {