From: megacz Date: Fri, 30 Jan 2004 06:50:26 +0000 (+0000) Subject: 2002/09/03 18:09:03 X-Git-Tag: RC3~1542 X-Git-Url: http://git.megacz.com/?p=org.ibex.core.git;a=commitdiff_plain;h=93316ec9a1b60cbc8e4285686bcd9e04f1a41763 2002/09/03 18:09:03 darcs-hash:20040130065026-2ba56-2414def8e7605a06bbf70edc7f9be4b6b17dc7d1.gz --- diff --git a/CHANGES b/CHANGES index ed87a00..34b535f 100644 --- a/CHANGES +++ b/CHANGES @@ -398,4 +398,7 @@ 02-Sep megacz Surface.java, Main.java: don't quit due to disposal of last surface unless initialization is complete. +03-Sep megacz XWF.java: code to handle .xwf's that don't include the + underscore character. + diff --git a/src/org/xwt/XWF.java b/src/org/xwt/XWF.java index 3c02da8..c3d43a2 100644 --- a/src/org/xwt/XWF.java +++ b/src/org/xwt/XWF.java @@ -78,7 +78,10 @@ public class XWF { int left = x; for(int i=0; i?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~".indexOf(text.charAt(i)); - if (c == -1 || metrics[c] == null) { left += metrics[64][4]; continue; } + if (c == -1 || metrics[c] == null) { + left += metrics[64] != null ? metrics[64][4] : 10; + continue; + } buf.drawPicture(pg, left, y - (metrics[c][5] - metrics[c][2]),