+ FontMetrics fm = getGraphics().getFontMetrics(newFont);
+ double mw=fm.getStringBounds("M", getGraphics())
+ .getWidth(),iw=fm.getStringBounds("I", getGraphics())
+ .getWidth();
+ if (mw<1 || iw < 1) {
+ // TODO: JAL-1100
+ fontName.select(lastSelected.getName());
+ fontStyle.select(lastSelStyle);
+ fontSize.select(""+lastSelSize);
+ JVDialog d = new JVDialog(this.frame, "Invalid Font", true, 350,200);
+ Panel mp=new Panel();
+ d.cancel.setVisible(false);
+ mp.setLayout(new FlowLayout());
+ mp.add(new Label("Font doesn't have letters defined\nso cannot be used\nwith alignment data."));
+ d.setMainPanel(mp);
+ d.setVisible(true);
+ return;