+ try {
+ ImageDecoder id = org.xwt.imp.Font.render(new FileInputStream("COMIC.TTF"), 24, text);
+ Picture p = Platform.createPicture(id);
+ buf.drawPicture(p, x, y);
+ buf.setClip(0, 0, buf.getWidth(), buf.getHeight());
+ } catch (Exception e) {
+ Log.log(this, e);
+ }
+
+ /*