哪一种立体效果?
不过基本上都可以用TextLayout来得到字体轮廓(Shape)来实现.

解决方案 »

  1.   

    不知道大家有没有用过WPS2003,看看里面的文字效果to:小刀TextLayout好像是个重量级的对象,很占资源的
      

  2.   

    Graphics2D g = ...;
       Point2D loc = ...;
       Font font = Font.getFont("Helvetica-bold-italic");
       FontRenderContext frc = g.getFontRenderContext();
       TextLayout layout = new TextLayout("This is a string", font, frc);
       layout.draw(g, (float)loc.getX(), (float)loc.getY());   Rectangle2D bounds = layout.getBounds();
       bounds.setRect(bounds.getX()+loc.getX(),
                      bounds.getY()+loc.getY(),
                      bounds.getWidth(),
                      bounds.getHeight());
       g.draw(bounds);