public TextLayout (String string, Font font, FontRenderContext frc) { AttributedString as = new AttributedString (string); as.addAttribute (TextAttribute.FONT, font);
public TextLayout (AttributedCharacterIterator text, FontRenderContext frc) { AttributedString as = new AttributedString (text);
  public TextLayout (String string, Font font, FontRenderContext frc)   {    AttributedString as = new AttributedString (string);    as.addAttribute (TextAttribute.FONT, font);    ClasspathToolkit tk = (ClasspathToolkit)(Toolkit.getDefaultToolkit ());    peer = tk.getClasspathTextLayoutPeer(as, frc);  }