就获得该 对象的 字体 字形 大小 三个属性

解决方案 »

  1.   

    那只能获得一个FONT 的对象 我想 获得 实例化这个对象的 三个参数字体 字形 大小
      

  2.   

    getFontName();
    getStyle();  
    getSize();
      

  3.   

    只是Style需要自己写方法进行判断是什么组合。
    font.getFontName();
    font.getSize();
    font.getStyle(); int style = font.getStyle();
    if(style & Font.PLAIN == Font.PLAIN){
    System.out.println("Font.PLAIN");
    }

    if(style & Font.BOLD == Font.BOLD){
    System.out.println("Font.BOLD");
    }

    if(style & Font.ITALIC == Font.ITALIC){
    System.out.println("Font.ITALIC");
    }
      

  4.   

            font.getFontName();
            font.getSize();
            font.getStyle();
    同意3楼