X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=src%2Forg%2Fxwt%2FXWF.java;h=c3d43a2dd2ec8984a1eedd0270a2bd612c76e91d;hb=93316ec9a1b60cbc8e4285686bcd9e04f1a41763;hp=3c02da8b062b00966d2766e6ee1214f5b6c314e4;hpb=8d55f69a27234ede95a307243d64dd583d112b30;p=org.ibex.core.git 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]),