字型的设置 例 g drawString(“ This is a test”’,5,10); 获取字体的属性 Font font=g. getFonto O Font类中常用的方法 GetFamilyo getNameo getsize getstyleo italico is Plain is Boldo toString JAVA字型的设置 例: g.drawString(“This is a test”,5,10); 获取字体的属性 Font font=g.getFont(); Font类中常用的方法 GetFamily() getName() getSize() getStyle() isItalic() isPlain() isBold() toString()