2003/12/03 06:20:42
authordavid <david@xwt.org>
Fri, 30 Jan 2004 07:42:33 +0000 (07:42 +0000)
committerdavid <david@xwt.org>
Fri, 30 Jan 2004 07:42:33 +0000 (07:42 +0000)
darcs-hash:20040130074233-0c9ea-a9f949a262df7a839f50f6cea401d6244d29213e.gz

src/org/xwt/Box.java

index 8c36f81..366b04b 100644 (file)
@@ -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;