// FIXME memory leak
static Hash boxToCursor = new Hash(500, 3);
- static final Font DEFAULT_FONT = Font.getFont((Stream)Main.builtin.get(JS.S("fonts/vera/Vera.ttf")), 10);
+ static final Font DEFAULT_FONT;
+ static {
+ try { DEFAULT_FONT = Font.getFont(Main.builtin.get(JS.S("fonts/vera/Vera.ttf")), 10); }
+ catch(JSExn e) { throw new Error("Error loading default font: " + e); }
+ }
// Flags //////////////////////////////////////////////////////////////////////