From: david Date: Fri, 30 Jan 2004 07:42:33 +0000 (+0000) Subject: 2003/12/03 06:20:42 X-Git-Tag: RC3~286 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=ba77666b40d71f15c313e800f53db7096f71fce9;p=org.ibex.core.git 2003/12/03 06:20:42 darcs-hash:20040130074233-0c9ea-a9f949a262df7a839f50f6cea401d6244d29213e.gz --- diff --git a/src/org/xwt/Box.java b/src/org/xwt/Box.java index 8c36f81..366b04b 100644 --- a/src/org/xwt/Box.java +++ b/src/org/xwt/Box.java @@ -61,6 +61,7 @@ public final class Box extends JSScope { static Hash boxToCursor = new Hash(500, 3); public static final int MAX_LENGTH = Integer.MAX_VALUE; + static final Font DEFAULT_FONT = Font.getFont((Res)Main.builtin.get("fonts/vera/Vera.ttf"), 10); // Flags ////////////////////////////////////////////////////////////////////// @@ -96,7 +97,7 @@ public final class Box extends JSScope { int flags = VISIBLE | PACKED | REPACK | REFLOW | RESIZE | FIXED /* ROWS */; private String text = null; - private Font font = null; + private Font font = DEFAULT_FONT; private Picture.Holder texture; private short strokewidth = 1; private int fillcolor = 0x00000000;